/* WoW Guild Portal - Home Page CSS */

:root {
    --bg-home: #05060a;
    --surface-glass: rgba(15, 17, 28, 0.7);
    --surface-glass-hover: rgba(25, 28, 45, 0.8);
    --border-gold: rgba(255, 209, 0, 0.15);
    --border-gold-glow: rgba(255, 209, 0, 0.4);
    --text-primary: #f1f5f9;
    --text-muted: #94a3b8;
    --accent-gold: #ffd100;
    --accent-gold-glow: rgba(255, 209, 0, 0.35);
    
    --alliance-blue: #0066cc;
    --alliance-glow: rgba(0, 102, 204, 0.3);
    --horde-red: #cc3333;
    --horde-glow: rgba(204, 51, 51, 0.3);
}

/* Base Settings */
body.home-page-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-home);
    background-image:
        radial-gradient(circle at 50% 0%, rgba(255, 209, 0, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 10% 30%, var(--alliance-glow) 0%, transparent 50%),
        radial-gradient(circle at 90% 70%, var(--horde-glow) 0%, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header & Navigation */
.home-header {
    background: rgba(10, 11, 18, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-gold);
    position: sticky;
    top: 0;
    z-index: 100;
}

.home-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: #fff;
}

.home-logo i {
    color: var(--accent-gold);
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 6px var(--accent-gold-glow));
}

.home-logo span {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #fff 40%, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-nav-actions {
    display: flex;
    gap: 1rem;
}

.btn-portal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 209, 0, 0.2), rgba(255, 209, 0, 0.05));
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 209, 0, 0.1);
}

.btn-portal:hover {
    background: var(--accent-gold);
    color: #05060a;
    box-shadow: 0 0 15px var(--accent-gold-glow);
    transform: translateY(-2px);
}

.btn-portal i {
    width: 16px;
    height: 16px;
}

/* Home Wrapper / Container */
.home-container {
    max-width: 900px; /* Make it more compact for mobile first display */
    margin: 0 auto;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* --- Carousel Banner Section --- */
.carousel-section {
    position: relative;
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #000;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 380px;
}

.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1.5rem;
    box-sizing: border-box;
}

.carousel-content {
    max-width: 600px;
    text-align: center;
    z-index: 2;
    animation: fadeIn 0.8s ease-out;
}

.carousel-slide-tag {
    font-size: 0.75rem;
    color: var(--accent-gold);
    background: rgba(255, 209, 0, 0.12);
    border: 1px solid rgba(255, 209, 0, 0.25);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.hero-faction-badges {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.faction-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    transition: all 0.3s;
}

.faction-badge.alliance i {
    color: #3b82f6;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

.faction-badge.horde i {
    color: #ef4444;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6));
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.hero-desc {
    font-size: 0.9rem;
    color: var(--text-primary);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
    line-height: 1.5;
    opacity: 0.95;
}

/* Controls */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 209, 0, 0.2);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--accent-gold);
    color: #05060a;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold-glow);
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-prev i,
.carousel-next i {
    width: 18px;
    height: 18px;
}

/* Indicators */
.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot.active {
    width: 20px;
    border-radius: 4px;
    background: var(--accent-gold);
    box-shadow: 0 0 8px var(--accent-gold-glow);
}

/* Sections Base Styling */
.home-section {
    background: var(--surface-glass);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 1.5rem 1.2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: border-color 0.3s;
}

.home-section:hover {
    border-color: rgba(255, 209, 0, 0.3);
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.6rem;
}

.section-title i {
    color: var(--accent-gold);
    width: 20px;
    height: 20px;
}

/* --- Schedule Text List Section --- */
.schedule-text-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.schedule-text-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.8rem;
}

.schedule-text-item:hover {
    background: rgba(255, 209, 0, 0.03);
    border-color: rgba(255, 209, 0, 0.25);
    transform: translateX(2px);
}

.sch-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
    overflow: hidden;
}

.sch-time-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(255, 209, 0, 0.08);
    border: 1px solid rgba(255, 209, 0, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
    text-align: center;
    min-width: 75px;
}

.sch-name-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sch-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.sch-status-tag {
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
}

.sch-status-tag.active {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.sch-status-tag.pending {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.sch-right i {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    transition: transform 0.2s, color 0.2s;
}

.schedule-text-item:hover .sch-right i {
    transform: translateX(2px);
    color: var(--accent-gold);
}

/* --- Feature Zone Grid --- */
.feature-zone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2x2 grid on mobile */
    gap: 0.8rem;
}

.feature-zone-btn {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.2rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    text-align: center;
    width: 100%;
}

.feature-zone-btn:hover {
    border-color: rgba(255, 209, 0, 0.3);
    background: rgba(255, 209, 0, 0.03);
    box-shadow: 0 5px 15px rgba(255, 209, 0, 0.08);
    transform: translateY(-2px);
}

.feature-icon-wrapper {
    width: 42px;
    height: 42px;
    background: rgba(255, 209, 0, 0.06);
    border: 1px solid rgba(255, 209, 0, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.feature-zone-btn:hover .feature-icon-wrapper {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.feature-icon-wrapper i {
    color: var(--accent-gold);
    width: 20px;
    height: 20px;
    transition: all 0.3s;
}

.feature-zone-btn:hover .feature-icon-wrapper i {
    color: #05060a;
}

.feature-btn-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.feature-btn-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* --- Schedule Detail Modal --- */
.modal-backdrop-home {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-card-home {
    background: #0d0e15;
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header-home {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title-home {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header-title-home i {
    color: var(--accent-gold);
    width: 20px;
    height: 20px;
}

.header-title-home h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
}

.close-modal-home {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-modal-home:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.modal-body-home {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.detail-row {
    display: flex;
    font-size: 0.85rem;
    line-height: 1.5;
}

.detail-label {
    color: var(--text-muted);
    width: 90px;
    flex-shrink: 0;
}

.detail-val {
    color: #fff;
    font-weight: 600;
}

.description-row {
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.4rem;
}

.detail-desc {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.25);
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.modal-footer-home {
    padding: 0.8rem 1.25rem;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
}

.btn-primary-home {
    padding: 0.45rem 1.2rem;
    background: var(--accent-gold);
    border: none;
    border-radius: 8px;
    color: #05060a;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary-home:hover {
    box-shadow: 0 0 10px var(--accent-gold-glow);
    transform: translateY(-1px);
}

/* --- Toast Notification System --- */
.toast-container-home {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast-home {
    background: rgba(15, 17, 28, 0.95);
    border: 1px solid var(--accent-gold);
    border-radius: 10px;
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
}

.toast-home.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-home span {
    font-size: 0.8rem;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
}

/* Home Footer */
.home-footer {
    background: rgba(10, 11, 18, 0.95);
    border-top: 1px solid var(--border-gold);
    padding: 1.5rem 1.2rem;
    text-align: center;
    margin-top: 1.5rem;
}

.home-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Desktop Layout Adaptations (电脑端适配) --- */
@media (min-width: 768px) {
    .home-container {
        padding: 2rem;
        gap: 2.5rem;
    }
    
    .carousel-container {
        height: 440px;
    }
    
    .hero-title {
        font-size: 2.6rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-desc {
        font-size: 1.05rem;
        margin-bottom: 0.8rem;
    }
    
    .home-section {
        padding: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }
    
    /* Upcoming text list layout details */
    .sch-name-text {
        font-size: 0.95rem;
    }
    
    .schedule-text-item {
        padding: 0.9rem 1.2rem;
    }
    
    /* Feature Zone Grid - 4 Columns on Desktop */
    .feature-zone-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
    }
    
    .feature-zone-btn {
        padding: 1.8rem 1rem;
    }
}
