@charset "UTF-8";
/* ==========================================================================
   CSS Değişkenleri (Dark Mode Premium Tema)
   ========================================================================== */
   :root {
    /* Renk Paleti - Modern Dark / Neon Accent */
    --bg-base: hsl(230, 15%, 8%);
    --bg-surface: hsl(230, 15%, 12%);
    --bg-surface-hover: hsl(230, 15%, 16%);
    --bg-glass: rgba(30, 32, 40, 0.7);
    
    --text-primary: hsl(0, 0%, 98%);
    --text-secondary: hsl(230, 10%, 70%);
    --text-muted: hsl(230, 10%, 50%);
    
    --primary: hsl(250, 80%, 65%);
    --primary-hover: hsl(250, 80%, 75%);
    --accent: hsl(320, 80%, 60%);
    
    --success: hsl(150, 60%, 50%);
    --warning: hsl(35, 90%, 60%);
    --danger: hsl(350, 70%, 60%);
    --info: hsl(200, 80%, 60%);
    
    /* Gölgeler ve Kenarlıklar */
    --border-color: hsl(230, 15%, 20%);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 15px rgba(139, 92, 246, 0.3);
    
    /* Yarıçap ve Geçişler */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* ==========================================================================
   Reset ve Temel Elementler
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ==========================================================================
   Tipografi
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Header ve Navigasyon
   ========================================================================== */
.main-header {
    background-color: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-text { color: var(--text-primary); }
.logo-accent { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-admin {
    color: var(--warning) !important;
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile Nav Toggle */
.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 768px) {
    .nav-toggle-label {
        display: block;
        cursor: pointer;
        padding: 10px;
    }
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: var(--text-primary);
        height: 2px;
        width: 24px;
        position: relative;
        transition: var(--transition);
    }
    .nav-toggle-label span::before { content: ''; top: -8px; }
    .nav-toggle-label span::after { content: ''; bottom: -8px; position: absolute; }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-toggle:checked ~ .nav-links {
        display: flex;
    }
}

/* ==========================================================================
   Bileşenler (Components)
   ========================================================================== */
.main-content {
    flex: 1;
    padding: 40px 0;
}

/* Butonlar */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    min-height: 44px; /* Mobile UX: Item 5 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sm { padding: 6px 12px; font-size: 0.875rem; }
.btn-lg { padding: 14px 28px; font-size: 1.125rem; }

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: var(--bg-surface-hover);
}

.btn-danger {
    background-color: rgba(255, 99, 132, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 99, 132, 0.2);
}

.btn-danger:hover {
    background-color: var(--danger);
    color: white;
}

/* Stat Boxes for Analysis */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-box {
    background: var(--bg-surface);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-diff {
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: 600;
}

.diff-up { color: var(--success); }
.diff-down { color: var(--danger); }
.diff-equal { color: var(--text-muted); }

.stat-comment {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 10px;
    font-style: italic;
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
}

/* Day Sections */
.day-section {
    margin-bottom: 40px;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface-hover);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
}

.day-title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

/* Search Box */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box .form-control {
    flex: 1;
}

/* Kartlar */
.card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.card-title {
    margin-bottom: 0;
    font-size: 1.25rem;
}

/* Formlar */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='hsl(0,0%,98%)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

/* Uyarılar (Alerts) */
.alert {
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success { background: rgba(46, 204, 113, 0.1); border-color: var(--success); color: var(--success); }
.alert-error { background: rgba(231, 76, 60, 0.1); border-color: var(--danger); color: var(--danger); }
.alert-warning { background: rgba(241, 196, 15, 0.1); border-color: var(--warning); color: var(--warning); }
.alert-info { background: rgba(52, 152, 219, 0.1); border-color: var(--info); color: var(--info); }

/* Tablolar */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.table tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Rozetler (Badges) */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-public { background: rgba(46, 204, 113, 0.1); color: var(--success); border: 1px solid var(--success); }
.badge-private { background: rgba(241, 196, 15, 0.1); color: var(--warning); border: 1px solid var(--warning); }

/* CSS Bar Grafik Sistemi */
.bar-chart-container {
    width: 100%;
    background: var(--bg-base);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 20px;
}

.bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.bar-label {
    width: 80px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.bar-track {
    flex: 1;
    height: 24px;
    background: var(--bg-surface-hover);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 12px;
    transition: width 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Grid Sistemleri */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
    }
}


/* Profil Avatar Büyütme */
.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-surface);
    box-shadow: 0 0 0 2px var(--primary);
    margin-bottom: 20px;
}

/* Video Grid Card */
.video-card {
    display: flex;
    flex-direction: column;
}
.video-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-base);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}
.video-thumbnail video, .video-thumbnail iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background: #000;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    margin-top: 100px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}
.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 20px;
}
.footer-section h4 {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-weight: 800;
}
.footer-section p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}
.footer-section ul {
    list-style: none;
    padding: 0;
}
.footer-section ul li {
    margin-bottom: 12px;
}
.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}
.footer-section ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}
.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #111;
    padding: 12px 20px;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    border: 1px solid #333;
    font-weight: 600;
    transition: 0.3s;
}
.social-btn:hover {
    border-color: #E1306C;
    box-shadow: 0 0 15px rgba(225, 48, 108, 0.3);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 40px;
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}
.footer-line {
    width: 50px;
    height: 2px;
    background: var(--primary);
    margin: 20px auto 0;
    border-radius: 1px;
}

@media (max-width: 768px) {
    .main-footer { padding: 60px 0 30px; }
    .footer-grid { gap: 40px; text-align: center; }
    .social-btn { justify-content: center; width: 100%; }
}

/* ==========================================================================
   Program View & Exercise Components
   ========================================================================== */
.view-header {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, transparent 100%);
    padding: 3rem 1rem;
    text-align: center;
}

.view-title { font-size: 2.2rem; font-weight: 900; margin: 0; text-transform: uppercase; letter-spacing: -0.5px; }
.view-desc { color: var(--text-muted); margin-top: 10px; font-size: 1rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.day-label {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 6px 20px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
}

.exercise-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

@media (min-width: 600px) { .exercise-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .exercise-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1300px) { .exercise-grid { grid-template-columns: repeat(4, 1fr); } }

.exercise-card {
    background: var(--bg-surface);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: var(--transition);
}

.exercise-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.ex-title { font-size: 1.15rem; font-weight: 800; color: #fff; margin: 0; }
.ex-note { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; line-height: 1.4; }

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.video-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: none;
}

/* ==========================================================================
   Measurements & Analysis
   ========================================================================== */
.dashboard-container { max-width: 1240px; margin: 0 auto; padding: 20px; }

.pro-header {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, transparent 100%);
    padding: 3rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    border-radius: 0 0 40px 40px;
}

.pro-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-top: -60px;
    padding: 0 20px;
    margin-bottom: 40px;
}

.pro-stat-card {
    background: var(--bg-surface);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.pro-stat-label { font-size: 0.65rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; }
.pro-stat-value { font-size: 1.6rem; font-weight: 900; margin: 5px 0; }
.pro-stat-diff { font-size: 0.75rem; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 4px; }

.status-success { color: var(--success); }
.status-danger { color: var(--danger); }
.status-neutral { color: var(--text-muted); }

.action-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .action-grid { grid-template-columns: 1fr; }
}

.pro-card {
    background: var(--bg-surface);
    border-radius: 25px;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.pro-input {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    color: #fff;
    width: 100%;
    outline: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.pro-input:focus { border-color: var(--primary); }

.pro-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 15px;
    font-weight: 900;
    width: 100%;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
}

.pro-btn:hover { box-shadow: var(--shadow-glow); transform: translateY(-2px); }

.pro-table { width: 100%; border-collapse: collapse; }
.pro-table th { padding: 12px; text-align: left; font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; border-bottom: 1px solid var(--border-color); }
.pro-table td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.02); font-size: 0.85rem; font-weight: 700; }

