/* tco-style.css - Turkish Chamber Orchestra Styles */

/* ─── COLOR TOKENS (Sinfonieorchester Wuppertal palette) ─────────────────────
   --accent      : deep institutional red
   --accent-dark : hover / active state
   --bg          : page background
   --bg-alt      : subtle section tint
   --surface     : card / panel background
   --border      : subtle border
   --text        : primary text
   --text-muted  : secondary / dimmed text
   ─────────────────────────────────────────────────────────────────────────── */
:root {
    --accent:       #b90c12;
    --accent-dark:  #8a0a0e;
    --bg:           #ffffff;
    --bg-alt:       #f4f4f2;
    --surface:      #ffffff;
    --border:       rgba(0, 0, 0, 0.12);
    --border-accent:rgba(192, 0, 26, 0.25);
    --text:         #1a1a1a;
    --text-muted:   #555555;
    --nav-bg:       #ffffff;
    --nav-bg-scroll:#ffffff;
    --footer-bg:    #1a1a1a;
    --footer-text:  #ffffff;
}

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

.tco-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Hero ─────────────────────────────────────────────────────────────────── */
.tco-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;
}

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

.tco-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

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

.tco-hero-text { animation: fadeInUp 1s ease-out; }

.tco-title {
    font-size: 4.5em;
    font-weight: 800;
    margin: 0 0 20px;
    color: #ffffff;
    /* subtle red underline accent instead of gold gradient */
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.tco-subtitle {
    font-size: 1.3em;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
}

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

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.tco-btn {
    padding: 15px 35px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

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

/* ─── Navigation ───────────────────────────────────────────────────────────── */
.tco-nav {
    position: sticky;
    top: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s;
    border-bottom: 2px solid var(--accent);
}

.tco-nav.scrolled {
    background: var(--nav-bg-scroll);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.tco-nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.tco-logo h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--accent);
}

.tco-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.tco-nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.tco-nav-menu a:hover { color: var(--accent); }

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

/* ─── Sections ─────────────────────────────────────────────────────────────── */
.tco-section {
    padding: 100px 0;
    position: relative;
}
.tco-section:nth-child(even) { background: var(--bg-alt); }

.tco-section-header {
    text-align: center;
    margin-bottom: 60px;
}
.tco-section-header h2 {
    font-size: 2.5em;
    margin: 0 0 20px;
    color: var(--text);
}

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

/* ─── About ────────────────────────────────────────────────────────────────── */
.tco-about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.tco-about-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text);
}

.tco-about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.tco-stat {
    background: var(--surface);
    padding: 30px;
    border-radius: 4px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.tco-stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
}

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

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

.tco-training-icon {
    font-size: 3em;
    color: var(--accent);
    margin-bottom: 20px;
}

.tco-training-list {
    text-align: left;
    margin-top: 20px;
    padding-left: 0;
    list-style: none;
}
.tco-training-list li { margin: 10px 0; font-size: 0.9em; color: var(--text); }
.tco-training-list i { color: var(--accent); margin-right: 10px; }

/* ─── Join Section ─────────────────────────────────────────────────────────── */
.tco-join-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.tco-join h2, .tco-join h3 { color: var(--accent); }
.tco-join-steps, .tco-requirements { margin: 30px 0; }
.tco-requirements i { color: var(--accent); margin-right: 10px; }
.tco-join-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* ─── Materials Section ────────────────────────────────────────────────────── */
.tco-materials { background: var(--bg-alt); }

.tco-materials-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tco-tab-btn {
    padding: 12px 25px;
    background: var(--surface);
    border: 1px solid var(--border-accent);
    border-radius: 4px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
}
.tco-tab-btn i { margin-right: 8px; }
.tco-tab-btn:hover,
.tco-tab-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.tco-password-form {
    background: var(--surface);
    padding: 40px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid var(--border);
}
.tco-password-form input {
    width: 100%;
    padding: 15px;
    margin: 20px 0;
    background: var(--bg-alt);
    border: 1px solid var(--border-accent);
    border-radius: 4px;
    color: var(--text);
}

.tco-loading { text-align: center; padding: 60px 20px; }
.tco-loading i { font-size: 2em; color: var(--accent); margin-bottom: 15px; display: block; }

/* ─── File Items ───────────────────────────────────────────────────────────── */
.tco-file-list { display: flex; flex-direction: column; gap: 15px; }

.tco-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--surface);
    border-radius: 4px;
    border: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 15px;
    transition: all 0.2s;
}
.tco-file-item:hover {
    background: #fef5f5;
    border-color: var(--border-accent);
    transform: translateX(4px);
}

.tco-file-info { flex: 1; min-width: 200px; }
.tco-file-meta { display: flex; gap: 20px; font-size: 0.8em; color: var(--text-muted); }

.tco-file-link {
    padding: 8px 15px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.tco-file-link:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192,0,26,0.25);
}

/* ─── Audio Items ──────────────────────────────────────────────────────────── */
.tco-audio-list { display: flex; flex-direction: column; gap: 20px; }

.tco-audio-item {
    background: var(--surface);
    padding: 20px;
    border-radius: 4px;
    border: 1px solid var(--border);
}
.tco-audio-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.tco-audio-header i { font-size: 1.5em; color: var(--accent); }
.tco-audio-item audio { width: 100%; margin-bottom: 15px; }

/* ─── Video Grid ───────────────────────────────────────────────────────────── */
.tco-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.tco-youtube-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
}
.tco-youtube-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ─── Contact ──────────────────────────────────────────────────────────────── */
.tco-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }

.tco-contact-item { display: flex; gap: 20px; margin-bottom: 25px; }
.tco-contact-item i { font-size: 1.5em; color: var(--accent); }

.tco-contact-form input,
.tco-contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: var(--bg-alt);
    border: 1px solid var(--border-accent);
    border-radius: 4px;
    color: var(--text);
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.tco-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px;
    border-top: 3px solid var(--accent);
}
.tco-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}
.tco-footer-logo h3 { margin: 0 0 10px; color: var(--accent); }
.tco-footer-links { display: flex; gap: 30px; }
.tco-footer-links a { color: var(--footer-text); text-decoration: none; opacity: 0.7; }
.tco-footer-links a:hover { opacity: 1; color: #fff; }

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

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

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

.tco-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(192,0,26,0.08);
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}
.tco-list-header .sort { cursor: pointer; user-select: none; transition: color 0.3s; display: inline-flex; align-items: center; gap: 5px; }
.tco-list-header .sort:hover { color: var(--accent); }
.tco-list-header .sort i { font-size: 12px; }

.tco-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.tco-pagination button {
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border-accent);
    border-radius: 4px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}
.tco-pagination button:hover:not(:disabled) { background: var(--accent); color: #fff; border-color: var(--accent); }
.tco-pagination button:disabled { opacity: 0.3; cursor: not-allowed; }

.tco-pages { display: flex; gap: 8px; flex-wrap: wrap; }
.tco-pages .page {
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    color: var(--text);
}
.tco-pages .page:hover { background: rgba(192,0,26,0.08); border-color: var(--border-accent); }
.tco-pages .page.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.tco-info { text-align: center; margin-top: 15px; font-size: 13px; color: var(--text-muted); }

/* ─── List containers ──────────────────────────────────────────────────────── */
.tco-file-list .list,
.tco-audio-list .list,
.tco-resources-list .list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block !important;
}
.tco-file-list li,
.tco-audio-list li,
.tco-resources-list li {
    display: block !important;
    margin-bottom: 15px;
}
.pagination { display: none; }

/* ─── States ───────────────────────────────────────────────────────────────── */
.tco-empty-message {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-alt);
    border-radius: 4px;
    color: var(--text-muted);
}
.tco-error {
    text-align: center;
    padding: 40px;
    background: rgba(192,0,26,0.06);
    border-radius: 4px;
    color: var(--accent-dark);
}
.tco-loading-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--accent);
    font-size: 1.2em;
}

/* ─── Sort icons ───────────────────────────────────────────────────────────── */
.sort.desc i:before { content: "\f0de"; }
.sort.asc  i:before { content: "\f0dd"; }

/* ─── Animations ───────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Mobile Responsive ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .tco-title { font-size: 2.2em; }
    .tco-section { padding: 60px 0; }

    .tco-about-content,
    .tco-join-wrapper,
    .tco-contact-grid { grid-template-columns: 1fr; }

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

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

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

    .tco-controls { flex-direction: column; align-items: stretch; }
    .tco-search { max-width: none; }
    .tco-list-header { display: none; }
    .tco-pagination { gap: 10px; }
    .tco-pages { order: 2; width: 100%; justify-content: center; }
    .tco-prev, .tco-next { order: 1; }
}