/* =====================================================
   LANGFY - GÜNLÜK GÖREVLER CSS
   Modern, Duolingo-inspired task design
   ===================================================== */

/* Ana Container */
.langfy-daily-tasks-card {
    margin: 0;
}

/* Başlık */
.langfy-daily-tasks-card .langfy-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.langfy-daily-tasks-card .langfy-card-title::before {
    content: '📋';
    font-size: 24px;
}

/* Alt Başlık */
.langfy-daily-tasks-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px dashed #e5e7eb;
}

/* Görev Listesi */
.langfy-daily-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Görev Item */
.langfy-task-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 10px;
    background: #ffffff;
    border-radius: 14px;
    /* border: 2px solid #e5e7eb; */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.langfy-task-item:hover {
    border-color: #3d618d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 97, 141, 0.15);
}

/* Tamamlanmış Görev */
.langfy-task-item.langfy-task-completed {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}


/* Bekleyen Görev */
.langfy-task-item.langfy-task-pending {
    background: #ffffff;
}

.langfy-task-item.langfy-task-pending:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

/* Kilitli Görev */
.langfy-task-item.langfy-task-locked {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-color: #d1d5db;
    opacity: 0.8;
}

/* Görev İkonu */
.langfy-task-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3d618d 0%, #7EE7D2 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(61, 97, 141, 0.25);
}

.langfy-task-icon i {
    font-size: 22px;
}

.langfy-task-completed .langfy-task-icon {
    background: linear-gradient(135deg, #22c55e 0%, #86efac 100%) !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

/* Görev İçeriği */
.langfy-task-content {
    flex: 1;
    min-width: 0;
}

.langfy-task-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.3;
}

.langfy-task-description {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 8px;
}

/* İlerleme Çubuğu */
.langfy-task-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.langfy-task-progress-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.langfy-task-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3d618d 0%, #7EE7D2 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.langfy-task-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.langfy-task-progress-text {
    font-size: 12px;
    font-weight: 600;
    color: #3d618d;
    white-space: nowrap;
}

/* Ödül Bölümü */
.langfy-task-reward {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
}

.langfy-task-points {
    font-size: 14px;
    font-weight: 700;
    color: #feca2a;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    padding: 6px 12px;
    border-radius: 20px;
    border: 2px solid #fde68a;
    white-space: nowrap;
}

.langfy-task-completed .langfy-task-points {
    color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.langfy-task-completed-badge {
    font-size: 24px;
    color: #22c55e;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Bugün Kazanılan Puan */
.langfy-today-points {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    border: 2px solid #fcd34d;
}

.langfy-today-points-label {
    font-size: 14px;
    font-weight: 500;
    color: #92400e;
}

.langfy-today-points-value {
    font-size: 18px;
    font-weight: 700;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.langfy-today-points-value::before {
    content: '⭐';
    font-size: 20px;
}

/* Görev Yok Mesajı */
.langfy-no-tasks {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.langfy-no-tasks-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.langfy-no-tasks-text {
    font-size: 15px;
    font-weight: 500;
}

/* Streak Badge */
.langfy-streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.langfy-streak-badge::before {
    content: '🔥';
    font-size: 16px;
}

/* Page1 Area Genel */
.page1_area {
    height: 100%;
    overflow-y: auto;
    background: #fff;
}

/* Responsive */
@media (max-width: 576px) {
    .langfy-daily-tasks-card {
        padding: 0px 16px;
        border-radius: 16px;
    }

    .langfy-task-item {
        padding: 12px;
        gap: 10px;
    }

    .langfy-task-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 22px;
        border-radius: 10px;
    }

    .langfy-task-name {
        font-size: 14px;
    }

    .langfy-task-description {
        font-size: 12px;
    }

    .langfy-task-points {
        font-size: 12px;
        padding: 4px 8px;
    }

    .langfy-task-reward {
        min-width: 50px;
    }

    .langfy-today-points {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Animasyonlar */
.langfy-task-item {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.langfy-task-item:nth-child(1) { animation-delay: 0.1s; }
.langfy-task-item:nth-child(2) { animation-delay: 0.2s; }
.langfy-task-item:nth-child(3) { animation-delay: 0.3s; }
.langfy-task-item:nth-child(4) { animation-delay: 0.4s; }
.langfy-task-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover efektleri */
.langfy-task-item:not(.langfy-task-completed):hover .langfy-task-icon {
    transform: scale(1.1) rotate(-5deg);
    transition: transform 0.3s ease;
}

.langfy-task-item:not(.langfy-task-completed):hover .langfy-task-progress-fill {
    background: linear-gradient(90deg, #7EE7D2 0%, #3d618d 100%);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .langfy-daily-tasks-card {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
        border-color: #374151;
    }

    .langfy-card-title {
        color: #f9fafb;
    }

    .langfy-daily-tasks-subtitle {
        color: #9ca3af;
        border-bottom-color: #374151;
    }

    .langfy-task-item {
        background: #1f2937;
        border-color: #374151;
    }

    .langfy-task-item:hover {
        background: #374151;
    }

    .langfy-task-name {
        color: #f9fafb;
    }

    .langfy-task-description {
        color: #9ca3af;
    }

    .langfy-task-progress-bar {
        background: #374151;
    }
}

/* =====================================================
   ANALYTICS / GÜNLÜK GÖREVLER İSTATİSTİK SAYFASI
   ===================================================== */

/* Haftalık Grafik Container */
.weekly-chart-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px 10px 5px 10px;
    margin-bottom: 25px;
}

.chart-bars {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 150px;
    flex-wrap: wrap;
    align-content: flex-start;
}

.chart-bar-wrapper {
    display: block;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 40px;
}

.chart-bar {
    width: 30px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    margin: auto;
}

.chart-bar .bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 15px;
    transition: height 0.3s ease;
}

.bar-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.bar-value {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

/* Section Card */
.section-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 0px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.section-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.section-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.section-title p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #64748b;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    background: #f8fafc;
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-tasks .stat-icon {
    background: #dbeafe;
    color: #3b82f6;
}

.stat-percent .stat-icon {
    background: #dcfce7;
    color: #22c55e;
}

.stat-points .stat-icon {
    background: #fef3c7;
    color: #f59e0b;
}

.stat-content .stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
}

.stat-content .stat-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

/* Task Breakdown */
.task-breakdown {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.breakdown-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-type {
    font-size: 14px;
    color: #1e293b;
}

.task-type i {
    margin-right: 8px;
    color: #10b981;
}

.task-count {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.breakdown-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.breakdown-bar .bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 4px;
}

/* All Time Stats */
.all-time-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.all-time-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8fafc;
    border-radius: 10px;
}

.all-time-item .label {
    color: #64748b;
    font-size: 14px;
}

.all-time-item .label i {
    margin-right: 8px;
    color: #94a3b8;
}

.all-time-item .value {
    font-weight: 700;
    color: #1e293b;
    font-size: 16px;
}

/* Responsive - Analytics */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .all-time-stats {
        grid-template-columns: 1fr;
    }
}

@media only screen and (min-width: 1200px) {
    .chart-bar-wrapper {
        display: block;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100px;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1200px) {
    .chart-bar-wrapper {
        display: block;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 75px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .chart-bar-wrapper {
        display: block;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 90px;
    }
}

@media only screen and (max-width: 400px) {
    .chart-bars {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        height: auto;
        flex-wrap: wrap;
        align-content: flex-start;
        margin-bottom: 15px;
    }
}

