/* chor-style.css - Betin Güneş Chöre */

/* ─── COLOR TOKENS ────────────────────────────────────────────────────────────
   Matches betingunes.com (style.css) and tco-style.css palette exactly
   ─────────────────────────────────────────────────────────────────────────── */
:root {
    --accent:        #b90c12;
    --accent-dark:   #8a0a0e;
    --bg:            #ffffff;
    --bg-alt:        #f4f4f2;
    --surface:       #ffffff;
    --border:        rgba(0, 0, 0, 0.1);
    --border-accent: rgba(185, 12, 18, 0.2);
    --text:          #1a1a1a;
    --text-muted:    #666666;
    --nav-bg:        #ffffff;
    --footer-bg:     #1a1a1a;
    --footer-text:   #ffffff;
}

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
.chor-page {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.chor-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Typography ───────────────────────────────────────────────────────────── */
.chor-page h1,
.chor-page h2,
.chor-page h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.chor-page h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.chor-page .section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 680px;
    margin: 0 auto 2rem;
}

/* ─── Hero ─────────────────────────────────────────────────────────────────── */
.chor-hero {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.chor-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.5) 100%);
}

.chor-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    padding: 2rem;
}

.chor-back-link {
    position: absolute;
    top: 30px;
    left: 30px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.85;
    transition: opacity 0.3s;
    z-index: 10;
}
.chor-back-link:hover { opacity: 1; text-decoration: underline; }

.chor-title {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
    margin-bottom: 1rem;
}

.chor-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255,255,255,0.88);
    max-width: 600px;
    margin: 0 auto 2rem;
}

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

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.chor-btn {
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.chor-btn-primary {
    background: var(--accent);
    color: #fff;
}
.chor-btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(185,12,18,0.3);
}

.chor-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.chor-btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* ─── Navigation ───────────────────────────────────────────────────────────── */
.chor-nav {
    position: sticky;
    top: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.chor-nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 24px;
}

.chor-logo h2 {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--accent);
    background: none;
    -webkit-text-fill-color: unset;
}

.chor-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
}

.chor-nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: color 0.2s;
}
.chor-nav-menu a:hover { color: var(--accent); }

.chor-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.chor-mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 5px 0;
    transition: 0.3s;
}

/* ─── Sections ─────────────────────────────────────────────────────────────── */
.chor-section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.chor-section:nth-child(even) { background: var(--bg-alt); }

.chor-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.chor-section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
    background: none;
    -webkit-text-fill-color: unset;
}

.chor-section-divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto 1.5rem;
}

/* ─── About ────────────────────────────────────────────────────────────────── */
.chor-about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.chor-about-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
}

.chor-about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.chor-stat {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 4px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, border-color 0.2s;
}
.chor-stat:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
}

.chor-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.chor-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ─── Training Cards ───────────────────────────────────────────────────────── */
.chor-training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.chor-training-card {
    background: var(--surface);
    padding: 2rem 1.5rem;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--border);
}
.chor-training-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.chor-training-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.chor-training-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.chor-training-list {
    text-align: left;
    margin-top: 1.2rem;
    padding-left: 0;
    list-style: none;
}
.chor-training-list li {
    margin: 0.6rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.chor-training-list i {
    color: var(--accent);
    margin-right: 8px;
}

/* ─── Join ─────────────────────────────────────────────────────────────────── */
.chor-join-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.chor-join h2,
.chor-join h3 {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    background: none;
    -webkit-text-fill-color: unset;
}

.chor-join-steps,
.chor-requirements { margin: 1.5rem 0; }

.chor-requirements i { color: var(--accent); margin-right: 10px; }
.chor-requirements p { margin: 0.6rem 0; color: var(--text-muted); }

.chor-join-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
}

/* ─── Materials / Tabs ─────────────────────────────────────────────────────── */
.chor-materials-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.chor-tab-btn {
    padding: 0.6rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border-accent);
    border-radius: 4px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}
.chor-tab-btn i { margin-right: 8px; }
.chor-tab-btn:hover,
.chor-tab-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.chor-password-form {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
    border: 1px solid var(--border);
}
.chor-password-form input {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    margin: 1rem 0;
    background: var(--surface);
    border: 1px solid var(--border-accent);
    border-radius: 4px;
    color: var(--text);
}
.chor-password-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(185,12,18,0.1);
}

.chor-loading { text-align: center; padding: 3rem; }

/* ─── File & Audio Lists ───────────────────────────────────────────────────── */

/* ── Shared column definition — change ONCE here to update both header and rows */
:root {
    --file-cols: 1fr 110px 170px;
}
.list,
.chor-pages {
    list-style: none;
    padding-left: 0;
}

/* Remove bullets and spacing from list wrappers */
.chor-file-list ul,
.chor-audio-list ul,
.chor-resources-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.chor-file-list li,
.chor-audio-list li,
.chor-resources-list li {
    list-style: none;
    padding: 0;
    margin: 0 0 0.4rem 0;
}
.chor-file-list li::marker,
.chor-audio-list li::marker,
.chor-resources-list li::marker { content: ''; }

/* Header — Name | Size | Date | Actions */
.chor-list-header {
    display: grid;
    grid-template-columns: var(--file-cols);
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: rgba(185,12,18,0.07);
    border-radius: 4px;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    border: 1px solid transparent; /* same border width as rows so padding matches */
}
.chor-list-header .sort {
    cursor: pointer;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.chor-list-header .sort:hover { color: var(--accent); }
.chor-list-header span:last-child { text-align: right; }

/* File list container */
.chor-file-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Each row — same grid + same padding as header */
.chor-file-item {
    display: grid;
    grid-template-columns: var(--file-cols);
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: var(--surface);
    border-radius: 4px;
    border: 1px solid var(--border);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.chor-file-item:hover {
    background: #fef5f5;
    border-color: var(--border-accent);
    transform: translateX(4px);
}

/* Col 1: name */
.chor-file-info {
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--text);
}
.chor-file-info i { color: var(--accent); margin-right: 8px; flex-shrink: 0; }
.chor-file-info .name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
}

/* Col 2: date */
.chor-file-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Col 3: actions */
.chor-file-actions { display: flex; gap: 0.5rem; justify-content: flex-end; }

.chor-file-link {
    padding: 6px 16px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
}
.chor-file-link:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(185,12,18,0.25);
}

.chor-audio-list { display: flex; flex-direction: column; gap: 1rem; }

.chor-audio-item {
    background: var(--surface);
    padding: 1rem 1.2rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}
.chor-audio-info { color: var(--text); font-weight: 500; margin-bottom: 0.5rem; }
.chor-audio-player audio { width: 100%; }
.chor-audio-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.4rem; }

.chor-resources-list { display: flex; flex-direction: column; gap: 0.8rem; }
.chor-resource-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
    background: var(--surface);
    border-radius: 4px;
    border: 1px solid var(--border);
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--text);
    transition: all 0.2s;
}
.chor-resource-item:hover {
    background: #fef5f5;
    border-color: var(--border-accent);
}
.chor-resource-item .type {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-alt);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ─── List.js Controls & Pagination ───────────────────────────────────────── */
.chor-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    background: var(--bg-alt);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.chor-search { position: relative; flex: 1; max-width: 300px; }
.chor-search input {
    width: 100%;
    padding: 10px 40px 10px 18px;
    background: var(--surface);
    border: 1px solid var(--border-accent);
    border-radius: 25px;
    color: var(--text);
    font-size: 0.85rem;
    transition: all 0.2s;
}
.chor-search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(185,12,18,0.1);
}
.chor-search i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    opacity: 0.7;
}

.chor-per-page { display: flex; align-items: center; gap: 0.5rem; }
.chor-per-page label { font-size: 0.85rem; color: var(--text-muted); }
.chor-per-page select {
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--border-accent);
    border-radius: 4px;
    color: var(--text);
    cursor: pointer;
}

.chor-list-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background: rgba(185,12,18,0.07);
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}
.chor-list-header .sort { cursor: pointer; transition: color 0.2s; display: inline-flex; align-items: center; gap: 4px; }
.chor-list-header .sort:hover { color: var(--accent); }

.chor-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.chor-pagination button {
    padding: 6px 16px;
    background: var(--surface);
    border: 1px solid var(--border-accent);
    border-radius: 4px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}
.chor-pagination button:hover:not(:disabled) {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.chor-pagination button:disabled { opacity: 0.3; cursor: not-allowed; }

.chor-pages { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chor-pages .page {
    padding: 4px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text);
    transition: all 0.2s;
}
.chor-pages .page:hover { background: rgba(185,12,18,0.08); border-color: var(--border-accent); }
.chor-pages .page.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.chor-info { text-align: center; margin-top: 1rem; font-size: 0.8rem; color: var(--text-muted); }

/* Hide default List.js pagination */
.pagination { display: none; }

/* ─── Video Grid ───────────────────────────────────────────────────────────── */
.chor-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.chor-youtube-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}
.chor-youtube-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ─── Contact ──────────────────────────────────────────────────────────────── */
.chor-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.chor-contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.chor-contact-item i { font-size: 1.3rem; color: var(--accent); }
.chor-contact-item h4 { color: var(--text); margin-bottom: 0.2rem; }
.chor-contact-item a, .chor-contact-item p { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.chor-contact-item a:hover { color: var(--accent); }

.chor-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.chor-social a { font-size: 1.3rem; color: var(--text-muted); transition: color 0.2s; }
.chor-social a:hover { color: var(--accent); }

.chor-contact-form input,
.chor-contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border-accent);
    border-radius: 4px;
    color: var(--text);
}
.chor-contact-form textarea { min-height: 120px; }

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.chor-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 0 1.5rem;
    border-top: 3px solid var(--accent);
}

.chor-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chor-footer-logo h3 { margin: 0 0 0.5rem; color: var(--accent); font-size: 1.3rem; }
.chor-footer-logo p { color: #aaaaaa; font-size: 0.85rem; }

.chor-footer-links { display: flex; gap: 2rem; }
.chor-footer-links a { color: #aaaaaa; text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
.chor-footer-links a:hover { color: #ffffff; }

.chor-copyright {
    text-align: center;
    font-size: 0.7rem;
    color: #666666;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ─── Utility ──────────────────────────────────────────────────────────────── */
.chor-empty-message,
.chor-error {
    text-align: center;
    padding: 3rem;
    background: var(--bg-alt);
    border-radius: 4px;
    color: var(--text-muted);
}
.chor-error { background: rgba(185,12,18,0.06); color: var(--accent-dark); }

.chor-loading-message { text-align: center; padding: 3rem; color: var(--accent); font-size: 1.1rem; }

/* ─── Animations ───────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.chor-hero-text { animation: fadeInUp 0.8s ease-out; }

/* ─── Mobile Responsive ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .chor-container { padding: 0 20px; }
    .chor-title { font-size: 2.5rem; letter-spacing: -1px; }
    .chor-section { padding: 3rem 0; }
    .chor-section-header h2 { font-size: 1.8rem; }

    .chor-about-content,
    .chor-join-wrapper,
    .chor-contact-grid { grid-template-columns: 1fr; gap: 2rem; }

    .chor-about-stats { grid-template-columns: 1fr; }

    .chor-nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        flex-direction: column;
        padding: 1.5rem;
        text-align: center;
        gap: 1rem;
        border-bottom: 2px solid var(--accent);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    .chor-nav-menu.active { display: flex; }
    .chor-mobile-toggle { display: block; }

    .chor-controls { flex-direction: column; }
    .chor-search { max-width: none; }
    .chor-list-header { display: none; }

    .chor-file-item {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.3rem 0.5rem;
    }
    .chor-file-info    { grid-column: 1; grid-row: 1; }
    .chor-file-date    { grid-column: 1; grid-row: 2; }
    .chor-file-actions { grid-column: 2; grid-row: 1 / 3; align-self: center; flex-direction: column; }

    .chor-footer-content { flex-direction: column; text-align: center; }
    .chor-footer-links { flex-wrap: wrap; justify-content: center; }
    .chor-video-grid { grid-template-columns: 1fr; }
}