/*
Theme Name: yangoo! Final v2
Description: Complete AI translation platform with cultural heritage branding - Fixed Layout Version
Version: 2.0
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Left Sidebar - Fixed Position */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 250px;
    background: linear-gradient(145deg, #7c9af0, #8b9ef5, #9bb3f8, #abc8fb);
    z-index: 1000;
    padding: 2rem 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
}

.sidebar-logo h1 {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.sidebar-nav {
    padding: 0 1rem;
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 12px;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 3px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
    cursor: pointer;
    height: 40px;
    box-sizing: border-box;
    width: 100%;
}

.sidebar-nav a span {
    margin-right: 10px;
    font-size: 16px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    display: inline-block;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Main Content Wrapper - Positioned to right of sidebar */
.main-wrapper {
    margin-left: 250px;
    width: calc(100% - 250px);
    min-height: 100vh;
    padding: 0;
}

.site-main {
    padding: 2rem;
    background: #ffffff;
    min-height: 100vh;
    width: 100%;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 2rem 2rem;
    background: linear-gradient(135deg, #7c9af0, #a855f7);
    color: white;
    border-radius: 20px;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 1000px;
    box-shadow: 0 10px 30px rgba(124, 154, 240, 0.3);
}

.cultural-badge {
    display: inline-block;
    background: linear-gradient(45deg, #7c9af0, #8b9ef5);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 2rem;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero-features {
        grid-template-columns: 1fr;
    }
}

.feature-highlight {
    background: white;
    padding: 0.8rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.feature-highlight:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.feature-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.3rem;
    white-space: nowrap;
}

.feature-description {
    color: #64748b;
    font-size: 0.7rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
}

/* Platform Features */
.platform-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Special AI Section - AI Testing Platform and Mind Detector Side by Side */
.ai-section-wrapper {
    display: grid;
    grid-template-columns: 2fr 0.8fr;
    gap: 2rem;
    margin-bottom: 2rem;
    grid-column: 1 / -1; /* Span full width of parent grid */
}

.ai-testing-card {
    /* AI Testing Platform takes more space for 4 models */
}

.mind-detector-card {
    /* Mind Detector takes less space, positioned beside */
    padding: 1.5rem !important;
    min-height: auto !important;
}

.mind-detector-card .card-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.mind-detector-card .feature-button {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

/* Compact AI Models Display */
.ai-models-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}

.ai-model-mini {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-model-mini:hover {
    background: #e2e8f0;
    border-color: #7c9af0;
    color: #1e40af;
}

@media (max-width: 768px) {
    .ai-section-wrapper {
        grid-template-columns: 1fr;
    }
    
    .ai-models-compact {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.3rem;
    }
    
    .ai-model-mini {
        font-size: 0.7rem;
        padding: 0.4rem;
    }
}

.feature-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1rem;
}

.card-description {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card-features {
    list-style: none;
    margin-bottom: 2rem;
}

.card-features li {
    color: #475569;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.card-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

.feature-button {
    background: linear-gradient(45deg, #7c9af0, #8b9ef5);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.feature-button:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .main-wrapper {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .platform-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }
}