/* Cork Widgets - Premium Glassmorphism Edition */
/* Mevcut tasarımla uyumlu hale getirilmiş widget stilleri */

:root {
    /* Cork renkleri mevcut paletimizle uyumlu */
    --cork-primary: var(--primary, #6366f1);
    --cork-success: var(--success, #10b981);
    --cork-danger: var(--error, #ef4444);
    --cork-warning: var(--warning, #f59e0b);
    --cork-text-main: var(--text-main, #0f172a);
    --cork-text-muted: var(--text-muted, #64748b);
}

/* Widget Base - Premium Glassmorphism */
.widget {
    position: relative;
    padding: 0;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 6px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Statistics Cards - Hybrid Widget */
.widget-one_hybrid {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 24px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget-one_hybrid:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(99, 102, 241, 0.2),
        0 6px 16px rgba(99, 102, 241, 0.1);
}

.widget-one_hybrid .widget-heading {
    padding: 0;
}

.widget-one_hybrid .widget-heading .w-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 16px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.widget-one_hybrid .widget-heading svg {
    height: 24px;
    width: 24px;
    stroke-width: 2px;
}

.widget-one_hybrid .widget-heading .w-value {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.widget-one_hybrid .widget-heading h5 {
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--cork-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Followers Widget - Indigo */
.widget-one_hybrid.widget-followers {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(129, 140, 248, 0.1) 100%);
}

.widget-one_hybrid.widget-followers .widget-heading .w-icon {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Referral Widget - Red */
.widget-one_hybrid.widget-referral {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(248, 113, 113, 0.1) 100%);
}

.widget-one_hybrid.widget-referral .widget-heading .w-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.widget-one_hybrid.widget-referral .widget-heading .w-value {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Social Widget - Blue */
.widget-one_hybrid.widget-social {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(34, 211, 238, 0.1) 100%);
}

.widget-one_hybrid.widget-social .widget-heading .w-icon {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.widget-one_hybrid.widget-social .widget-heading .w-value {
    background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Engagement Widget - Green */
.widget-one_hybrid.widget-engagement {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.1) 100%);
}

.widget-one_hybrid.widget-engagement .widget-heading .w-icon {
    color: #10b981;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.widget-one_hybrid.widget-engagement .widget-heading .w-value {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Browser Stats Widget */
.widget-four {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: 20px;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.widget-four .widget-heading {
    margin-bottom: 32px;
}

.widget-four .widget-heading h5 {
    font-size: 18px;
    display: block;
    color: var(--cork-text-main);
    font-weight: 700;
    margin-bottom: 0;
}

.widget-four .widget-content .browser-list {
    display: flex;
    align-items: center;
}

.widget-four .widget-content .browser-list:not(:last-child) {
    margin-bottom: 24px;
}

.widget-four .widget-content .w-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 14px;
    height: 44px;
    width: 44px;
    margin-right: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.widget-four .widget-content .w-icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.widget-four .widget-content .browser-list:nth-child(1) .w-icon {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.widget-four .widget-content .browser-list:nth-child(2) .w-icon {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.widget-four .widget-content .browser-list:nth-child(3) .w-icon {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.widget-four .widget-content .browser-list:nth-child(1) .w-icon svg {
    color: #6366f1;
}

.widget-four .widget-content .browser-list:nth-child(2) .w-icon svg {
    color: #ef4444;
}

.widget-four .widget-content .browser-list:nth-child(3) .w-icon svg {
    color: #f59e0b;
}

.widget-four .widget-content .w-browser-details {
    width: 100%;
    align-self: center;
}

.widget-four .widget-content .w-browser-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.widget-four .widget-content .w-browser-info h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--cork-text-main);
}

.widget-four .widget-content .w-browser-info p {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--cork-text-muted);
}

.widget-four .widget-content .w-browser-stats .progress {
    margin-bottom: 0;
    height: 10px;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.widget-four .widget-content .w-browser-stats .progress .progress-bar {
    position: relative;
    border-radius: 50px;
    transition: width 0.6s ease;
}

.widget-four .widget-content .browser-list:nth-child(1) .progress-bar {
    background: linear-gradient(90deg, #6366f1 0%, #818cf8 100%);
}

.widget-four .widget-content .browser-list:nth-child(2) .progress-bar {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

.widget-four .widget-content .browser-list:nth-child(3) .progress-bar {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

/* Activity Timeline Widget */
.widget-activity-three {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.widget-activity-three .widget-heading {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    padding: 24px 24px 20px 24px;
}

.widget-activity-three .widget-heading h5 {
    font-size: 18px;
    display: block;
    color: var(--cork-text-main);
    font-weight: 700;
    margin-bottom: 0;
}

.widget-activity-three .widget-content {
    padding: 20px 10px 20px 24px;
}

.widget-activity-three .mt-container {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 14px;
}

/* Custom Scrollbar */
.widget-activity-three .mt-container::-webkit-scrollbar {
    width: 6px;
}

.widget-activity-three .mt-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.widget-activity-three .mt-container::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 10px;
}

.widget-activity-three .mt-container::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

.widget-activity-three .timeline-line .item-timeline {
    display: flex;
    margin-bottom: 24px;
}

.widget-activity-three .timeline-line .item-timeline .t-dot {
    position: relative;
}

.widget-activity-three .timeline-line .item-timeline .t-dot div {
    background: #6366f1;
    border-radius: 14px;
    padding: 10px;
    margin-right: 16px;
    display: flex;
    height: 44px;
    justify-content: center;
    width: 44px;
    align-items: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.widget-activity-three .timeline-line .item-timeline .t-dot div.t-primary {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
}

.widget-activity-three .timeline-line .item-timeline .t-dot div.t-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.widget-activity-three .timeline-line .item-timeline .t-dot div.t-danger {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

.widget-activity-three .timeline-line .item-timeline .t-dot div.t-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.widget-activity-three .timeline-line .item-timeline .t-dot svg {
    color: #fff;
    height: 20px;
    width: 20px;
    stroke-width: 2px;
}

.widget-activity-three .timeline-line .item-timeline .t-content {
    width: 100%;
}

.widget-activity-three .timeline-line .item-timeline .t-content .t-uppercontent {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.widget-activity-three .timeline-line .item-timeline .t-content .t-uppercontent h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--cork-text-main);
}

.widget-activity-three .timeline-line .item-timeline .t-content .t-uppercontent span {
    font-size: 12px;
    font-weight: 500;
    color: var(--cork-text-muted);
}

.widget-activity-three .timeline-line .item-timeline .t-content p {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--cork-text-muted);
}

.widget-activity-three .timeline-line .item-timeline .t-dot:after {
    content: '';
    position: absolute;
    border-left: 2px dashed rgba(99, 102, 241, 0.2);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    top: 44px;
    bottom: -24px;
}

.widget-activity-three .timeline-line .item-timeline:last-child .t-dot:after {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .widget {
        margin-bottom: 20px;
    }

    .widget-one_hybrid .widget-heading .w-value {
        font-size: 28px;
    }
}