/* Sözcük Atlası — Deyim/Atasözü Detay Sayfası */
/* Bu dosyayı değiştirmek tüm 500 sayfayı etkiler */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-color: #6366f1;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gradient-main: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--gray-50);
}

/* ── Header ── */
header {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}
.logo-icon { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }

/* ── Breadcrumb ── */
.breadcrumb {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 2rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
}
.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { margin: 0 0.5rem; color: var(--gray-200); }

/* ── Hero ── */
.detail-hero {
    background: var(--gradient-main);
    color: var(--white);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
}
.detail-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 0.75rem;

}
.badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-deyim { background: rgba(255,255,255,0.2); color: #fff; }
.badge-atasozu { background: rgba(255,255,255,0.2); color: #fff; }

/* ── Main Content ── */
.detail-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Section */
.section {
    margin-bottom: 2.5rem;
}
.section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-200);
}

/* Meaning */

/* Explanation */
.section-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}
.section-text a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: var(--gray-200);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    font-weight: 500;
    transition: text-decoration-color 0.2s;
}
.section-text a:hover { text-decoration-color: var(--primary-color); }

/* Example Sentences */
.example-list {
    list-style: none;
}
.example-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Origin */
.origin-box {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* ── Related Items ── */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}
.related-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}
.related-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}
.related-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.related-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}
.related-badge-D { background: #eef2ff; color: var(--primary-color); }
.related-badge-A { background: #fef3c7; color: #92400e; }

/* ── FAQ Accordion ── */
#sss { margin-top: 1.5rem; }
.accordion-item {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.accordion-item:hover { box-shadow: var(--shadow-lg); }
.accordion-header {
    background: var(--white);
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-dark);
}
.accordion-header:hover { background: var(--gray-50); }
.accordion-item.open .accordion-header {
    background: linear-gradient(135deg, #eef2ff, #f0f4ff);
    border-bottom: 1px solid var(--gray-200);
}
.accordion-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
    display: none;
    padding: 1.25rem 1.5rem;
    background: var(--white);
}
.accordion-item.open .accordion-body { display: block; }
.accordion-body p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ── Back Link ── */
.back-link {
    text-align: center;
    margin: 2rem 0;
}
.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}
.back-link a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .detail-hero { padding: 2rem 1rem 1.5rem; }
    .detail-hero h1 { font-size: 1.5rem; }
    .detail-main { padding: 1.5rem 1rem; }
    .breadcrumb { padding: 0.75rem 1rem 0; }
    .related-grid { grid-template-columns: 1fr; }
    .example-list li { padding: 1rem 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
