:root {
    --primary-color: #2563eb;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-lg: 0.75rem;
    --transition: all 0.3s ease;
}

.example-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.ex-tab-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid transparent;
    background: var(--bg-white);
    color: var(--text-light);
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-sm);
}

.ex-tab-btn i {
    font-size: 1.1rem;
}

.ex-tab-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.ex-tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.example-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.4s ease;
}

.example-grid.active {
    display: grid;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.example-card.modern {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.example-card.modern:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.ex-badge-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.ex-type-badge {
    background: #dcfce7;
    color: #166534;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ex-type-badge.variant {
    background: #dbeafe;
    color: #1e40af;
}

.ex-type-badge.adaptation {
    background: #fef2f2;
    color: #991b1b;
}

.ex-lang-badge {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ex-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ex-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.ex-text {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.ex-dimensions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.dim-tag {
    background: #f3f4f6;
    color: #4b5563;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #e5e7eb;
}

.ex-audio-section {
    margin-top: auto;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--border-color);
}

.audio-player {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 12px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.audio-player audio {
    width: 100%;
    height: 32px;
}

audio::-webkit-media-controls-panel {
    background-color: #f1f5f9;
}

.model-output-box {
    margin-top: 1rem;
    border: 1px dashed #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    background: #fafbfc;
}

.model-output-header {
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.model-output-header i {
    color: #7c3aed;
}

.model-audio-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
}

.model-audio-row:last-child {
    border-bottom: none;
}

.model-audio-row .model-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    min-width: 180px;
    width: 180px;
    text-align: center;
    background: #f1f5f9;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
}

.model-intro {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0.8rem 0;
    padding: 0.6rem 0.8rem;
    background: #f8fafc;
    border-left: 3px solid #94a3b8;
    border-radius: 0 6px 6px 0;
}

.model-intro-label {
    font-weight: 700;
    color: #475569;
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.model-intro-text {
    font-style: italic;
    color: #64748b;
}

.model-audio-row audio {
    flex: 1;
    height: 30px;
}

@media (max-width: 768px) {
    .example-tabs {
        flex-direction: column;
    }
    
    .example-grid {
        grid-template-columns: 1fr;
    }
}