/* CNN Playground - Index Page Styles */

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(168, 85, 247, 0.05));
    border-radius: 20px;
    margin-bottom: 60px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(30, 64, 175, 0.1));
    border-color: rgba(59, 130, 246, 0.2);
}

.hero-title {
    font-size: 3.5em;
    font-weight: 800;
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

[data-theme="dark"] .hero-title {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 18px 35px;
    font-size: 1.2em;
    font-weight: 600;
    text-decoration: none;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px var(--shadow-light);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.05), transparent);
    transition: left 0.6s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-medium);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: var(--accent-color);
    background: rgba(139, 92, 246, 0.1);
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

[data-theme="dark"] .feature-icon {
    background: rgba(59, 130, 246, 0.1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.05);
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 600;
    text-align: center;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.feature-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 25px;
}

.highlight {
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    white-space: nowrap;
}

[data-theme="dark"] .highlight {
    background: #3b82f6;
}

.feature-action {
    text-align: center;
}

.btn-text {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.feature-card:hover .btn-text {
    transform: translateX(5px);
}

/* Technology Showcase */
.tech-showcase {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 60px;
    border: 1px solid var(--border-color);
}

.tech-showcase h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
    font-size: 2.2em;
    font-weight: 700;
}

.tech-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.tech-category {
    text-align: center;
}

.tech-category h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tech-tag {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
}

[data-theme="dark"] .tech-tag {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(30, 64, 175, 0.1));
    border-color: rgba(59, 130, 246, 0.2);
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5em;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero {
        width: 250px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .tech-categories {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .tech-showcase {
        padding: 25px;
    }
}

.tech-category {
    text-align: center;
    padding: 10px;
}

.tech-category h4 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1.1em;
    font-weight: 600;
}
