/* Index Page Specific Styles */

/* Index Header Override */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Index Etymology Section */
.etymology-section {
    background-color: var(--secondary);
    padding: 4rem 2rem;
    margin-bottom: 6rem;
    position: relative;
    border-left: 6px solid var(--accent);
    border-radius: 5px;
}

.etymology-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.etymology-item {
    display: flex;
    flex-direction: column;
}

.etymology-title {
    font-size: 1.5rem;
    color: var(--light);
    margin-bottom: 1rem;
    font-weight: 700;
}

.etymology-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--gray-200);
}

.etymology-content p {
    margin-bottom: 1rem;
}

.etymology-highlight {
    color: var(--accent);
    font-weight: 700;
}

/* Index Card Overrides */
.card {
    background-color: var(--secondary);
    padding: 2.5rem;
    border: 2px solid var(--gray-600);
    border-radius: 5px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-secondary) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.card h3 {
    font-size: 1.5rem;
}

.icon {
    min-width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 5px;
}

.card p {
    color: var(--gray-200);
}

/* Index CTA Section */
.cta {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.8) 0%, rgba(255, 107, 107, 0.8) 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    margin-bottom: 6rem;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
}

.cta h2 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

.cta h2::after {
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-secondary) 100%);
    left: 50%;
    transform: translateX(-50%);
}

.cta p {
    margin-bottom: 2rem;
    font-size: 1.25rem;
    position: relative;
    z-index: 10;
}

/* Index Button Override */
.btn {
    padding: 1rem 2.5rem;
    font-weight: 700;
    position: relative;
    z-index: 10;
}

.btn:hover {
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

/* Index Footer Override */
.copyright {
    margin-top: 1.5rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Index Go to Top Button Override */
.go-top {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 1000;
    border-radius: 5px;
}

.go-top:hover {
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

/* Index Responsive Overrides */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .etymology-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .logo-container {
        padding-bottom: 0;
    }
    
    .header-nav {
        margin-left: auto;
        margin-top: 0;
    }
    
    .hero h1 {
        font-size: 5rem;
    }
    
    .etymology-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
}
