/* =====================================================
   Index Page - Specific Styles
   ===================================================== */

.index-page {
    padding-bottom: calc(var(--mobile-nav-height) + 20px);
}

@media (min-width: 992px) {
    .index-page {
        padding-bottom: 40px;
    }
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero-section {
    padding: 40px 0 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6610f2 100%);
    color: white;
    margin-bottom: 24px;
}

.hero-content {
    max-width: 500px;
    margin: 0 auto;
}

.hero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 16px;
}

.hero-description {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 60px 0 50px;
    }

    .hero-icon {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero-description {
        font-size: 1rem;
    }
}

/* =====================================================
   Services Section
   ===================================================== */
.services-section {
    margin-bottom: 32px;
    margin-top: -50px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    background-color: var(--bg-surface);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    color: var(--text-primary);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card.service-primary::before {
    background: linear-gradient(90deg, var(--primary-color), #6610f2);
}

.service-card.service-success::before {
    background: linear-gradient(90deg, var(--success-color), #20c997);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.75rem;
    margin-bottom: 14px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card.service-primary .service-icon {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15) 0%, rgba(102, 16, 242, 0.15) 100%);
    color: var(--primary-color);
}

.service-card.service-success .service-icon {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.15) 0%, rgba(32, 201, 151, 0.15) 100%);
    color: var(--success-color);
}

.service-info {
    flex: 1;
}

.service-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.service-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

.service-arrow {
    margin-top: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-surface-hover);
    border-radius: 50%;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-arrow {
    background-color: var(--primary-color);
    color: white;
}

.service-card.service-success:hover .service-arrow {
    background-color: var(--success-color);
}

@media (min-width: 768px) {
    .service-card {
        padding: 28px 24px;
    }

    .service-icon {
        width: 80px;
        height: 80px;
        font-size: 2.25rem;
    }

    .service-title {
        font-size: 1.15rem;
    }

    .service-desc {
        font-size: 0.85rem;
    }
}

/* =====================================================
   Features Section
   ===================================================== */
.features-section {
    padding: 0 0 32px;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.feature-card {
    text-align: center;
    padding: 20px 12px;
    background-color: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    height: 100%;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 1.25rem;
}

.feature-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .feature-card {
        padding: 28px 20px;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .feature-title {
        font-size: 1rem;
    }

    .feature-desc {
        font-size: 0.85rem;
    }
}

/* =====================================================
   Stats Section
   ===================================================== */
.stats-section {
    padding: 0 0 32px;
}

.stats-card {
    background-color: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.stat-item {
    text-align: center;
    padding: 16px 8px;
    border-left: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-left: none;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* =====================================================
   Welcome Section
   ===================================================== */
.welcome-section {
    padding: 0 0 24px;
}

.welcome-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.welcome-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
}

.welcome-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.welcome-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.welcome-name {
    font-weight: 600;
    font-size: 1rem;
}

.welcome-credit {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
}

.welcome-credit:hover {
    background-color: rgba(25, 135, 84, 0.2);
    color: var(--success-color);
}

/* =====================================================
   Activity Section
   ===================================================== */
.activity-section {
    padding: 0 0 24px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background-color: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.activity-item:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.activity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.activity-icon.type-drive {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

.activity-icon.type-buy {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.activity-info {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.activity-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    flex-shrink: 0;
}

.activity-status.status-completed {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.activity-status.status-pending {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.activity-status.status-cancelled {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* Activity Empty State */
.activity-empty {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--bg-surface);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
}

.activity-empty i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    opacity: 0.5;
}

.activity-empty p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* =====================================================
   Dark Mode
   ===================================================== */
[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #1a3a5c 0%, #2d1b4e 100%);
}

[data-bs-theme="dark"] .service-card {
    background-color: var(--bg-surface);
}

[data-bs-theme="dark"] .service-card.service-primary .service-icon {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2) 0%, rgba(102, 16, 242, 0.2) 100%);
}

[data-bs-theme="dark"] .service-card.service-success .service-icon {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.2) 0%, rgba(32, 201, 151, 0.2) 100%);
}