/* Internationalization Page Specific Styles */

/* Section Spacing - Match themes.html styling */
.section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Languages Grid */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.language-item {
    display: flex;
    align-items: center;
    padding: 2rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.language-item > * {
    position: relative;
    z-index: 1;
}

.language-item.rtl-language {
    background: #ffffff;
    position: relative;
}

.language-item.rtl-language::after {
    content: 'RTL';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--info-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.language-flag {
    font-size: 2.2rem;
    margin-right: 1.5rem;
    line-height: 1;
}

.language-info {
    flex: 1;
}

.language-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.language-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
    background: var(--lightprimary);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.language-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rtl-language .language-status {
    color: var(--info-color);
    font-weight: 600;
}

/* File Structure */
.file-structure {
    background: var(--grey100);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.file-tree {
    font-family: 'JetBrains Mono', monospace;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    position: relative;
}

.file-item.level-1 {
    margin-left: 1.5rem;
}

.file-item.level-2 {
    margin-left: 3rem;
}

.file-item.level-3 {
    margin-left: 4.5rem;
}

.file-item i {
    margin-right: 0.5rem;
    width: 16px;
}

.file-item span:first-of-type {
    font-weight: 500;
    color: var(--text-primary);
}

.file-description {
    margin-left: 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
}

/* Code Examples - I18n specific */
.code-example-section .file-path {
    background: var(--lightprimary);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 6px 6px 0 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

/* Installation Steps - Matching main.css design exactly */
.installation-step, .guide-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.installation-step:not(:last-child)::after, .guide-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 60px;
    bottom: -3rem;
    width: 2px;
    background: var(--border-color);
}

.step-number {
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.step-content h5 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.step-content p {
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .languages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }
    
    .language-item {
        padding: 1rem;
    }
    
    .language-flag {
        font-size: 2rem;
        margin-right: 0.75rem;
    }
    
    .language-name {
        font-size: 1.1rem;
    }
    
    .file-item.level-1 {
        margin-left: 1rem;
    }
    
    .file-item.level-2 {
        margin-left: 2rem;
    }
    
    .file-item.level-3 {
        margin-left: 3rem;
    }
    
    .installation-step, .guide-step {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .installation-step:not(:last-child)::after, .guide-step:not(:last-child)::after {
        left: 18px;
        top: 50px;
        bottom: -2rem;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .step-content h4, .step-content h5 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .languages-grid {
        grid-template-columns: 1fr;
    }
    
    .language-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .language-flag {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .file-structure {
        padding: 1rem;
    }
    
    .installation-section .installation-step {
        padding-left: 2.5rem;
    }
    
    .step-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
    }
}

/* RTL Specific Styles */
.rtl-support-note {
    background: linear-gradient(135deg, var(--lightsecondary), var(--lightprimary));
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    border-left: 4px solid var(--info-color);
}

.rtl-support-note h6 {
    color: var(--info-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.rtl-support-note p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}
