/* ========== TEMEL DEĞIŞKENLER ========== */
:root {
    /* Ana Renkler */
    --primary: #e6394b;
    --primary-dark: #d90429;
    --primary-light: #f1faee;
    --secondary: #1d3557;
    --accent: #457b9d;
    
    /* Nötr Renkler */
    --white: #ffffff;
    --light: #f1f2f6;
    --gray-50: #f8f9fa;
    --gray-100: #e9ecef;
    --gray-200: #dee2e6;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-900: #212529;
    
    /* Seviye Renkleri */
    --beginner: #2a9d8f;
    --intermediate: #f4a261;
    --advanced: #e76f51;
    
    /* Tema Renkleri */
    --success: var(--beginner);
    --warning: #ffc300;
    --danger: var(--primary);
    --info: var(--accent);
    
    /* Gölgeler */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 18px;
    --radius-xl: 25px;
    
    /* Animasyonlar */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ========== TEMEL STİLLER VE RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background-color: var(--light);
    color: var(--gray-700);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== ÜST MENÜ ========== */
/* Bu sayfada üst menü stillerini global style.css belirlesin diye
   yerel header/nav stilleri kaldırıldı. */

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-content {
    font-size: 12rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ========== FEATURES SECTION ========== */
.features {
    padding: 6rem 0;
    background: var(--white);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid var(--gray-100);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-emoji {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.btn-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* ========== MOTIVATION SECTION ========== */
.motivation {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.motivation h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-style: italic;
}

.motivation p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== FOOTER ========== */
footer {
    background: var(--secondary);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-300);
}

/* ========== SAYFA BAŞLIK BÖLÜMÜ ========== */
.page-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 6rem 0 7rem;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: var(--light);
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.page-title {
    font-size: 3.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    line-height: 1.2;
}

.section-description {
    text-align: center;
    font-size: 1.15rem;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.9;
    font-weight: 300;
}

/* Quick Stats */
.quick-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary-light);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========== FİLTRELEME BÖLÜMÜ ========== */
.program-filter-bar {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom:  -4rem auto 3rem;
    /* Sticky: header yüksekliğine göre sabitle */
   position: static;
    top: calc(env(safe-area-inset-top, 0px) + var(--header-height, 64px) + 12px);
    left: 50%;
    right: 50%;
    width: min(1100px, calc(100% - 32px));
    transform: translateX(5%);
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    border: 1px solid var(--gray-100);
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    font-weight: 600;
    font-size: 1rem;
}
.filter-group label i {
    color: var(--primary);
    font-size: 1.1rem;
}

.filter-group select {
    width: 100%;
    padding: 1.1rem 1.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--gray-900);
    background-color: var(--gray-50);
    cursor: pointer;
    transition: var(--transition-normal);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23e6394b' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 3rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.filter-group select:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(230, 57, 75, 0.1);
}

.filter-actions {
    display: flex;
    align-items: flex-end;
}

#resetFilters {
    width: 100%;
    padding: 1.1rem 1.5rem;
}

/* ========== PROGRAM KARTLARI ========== */
#programGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    padding: 2rem 0 5rem;
}

.program-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.program-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 150%);
    color: var(--white);
    padding: 2.5rem;
    position: relative;
    border-bottom: 5px solid var(--primary-dark);
}

.program-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.program-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.program-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.level-badge {
    padding: 0.4rem 1rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.level-badge[data-level="Başlangıç"] { background-color: var(--beginner); }
.level-badge[data-level="Orta"] { background-color: var(--intermediate); color: var(--gray-900); }
.level-badge[data-level="İleri"] { background-color: var(--advanced); }

.program-rating i {
    color: var(--warning);
    margin-right: 0.25rem;
}

.program-body {
    padding: 2.5rem;
    flex-grow: 1;
}

.program-description {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.program-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px dashed var(--gray-200);
    border-bottom: 1px dashed var(--gray-200);
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 1.75rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
}

.program-card:hover .stat-item i {
    color: var(--primary);
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.program-footer {
    padding: 2.5rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1.1rem 2.2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition-normal);
    flex: 1;
    text-decoration: none;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(230, 57, 75, 0.25);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 75, 0.3);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    border-color: var(--accent);
}

/* ========== MODAL STYLES ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal.show {
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 900px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transform: translateY(30px);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 2rem;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.modal-close, .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    backdrop-filter: blur(5px);
    font-size: 1.2rem;
}

.modal-close:hover, .close-btn:hover {
    background: rgba(255,255,255,0.4);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-footer {
    padding: 2rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    gap: 1rem;
}

.modal-download-btn {
    width: 100%;
}

/* ========== NO RESULTS STYLES ========== */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px dashed var(--gray-300);
}

.no-results-icon {
    font-size: 4rem;
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.no-results h2 {
    font-size: 1.5rem;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* ========== CUSTOM MESSAGE ========== */
.custom-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background-color: var(--secondary);
    color: var(--white);
    padding: 12px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.4s ease-out;
    z-index: 1000;
    font-weight: 500;
}

.custom-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========== ANIMASYONLAR ========== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ========== MODAL İÇERİK STİLLERİ ========== */
.modal-program-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.program-meta-large {
    display: flex;
    gap: 2rem;
}

.meta-item {
    text-align: center;
}

.meta-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.meta-item span {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.meta-item small {
    color: var(--gray-600);
    font-size: 0.8rem;
}

.program-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
}

.badge-goal {
    background: var(--accent);
    color: var(--white);
}

.content-section {
    margin-bottom: 2.5rem;
}

.content-section h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.detail-item i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 20px;
}

.detail-item span {
    flex: 1;
    color: var(--gray-700);
}

.detail-item strong {
    color: var(--gray-900);
}

.workout-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.schedule-day {
    text-align: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.day-name {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.day-status {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    background: var(--success);
    color: var(--white);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.equipment-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.equipment-item i {
    color: var(--accent);
}

.muscle-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.muscle-tag {
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========== HAFTALIK PROGRAM GÖRÜNÜMÜ ========== */
.weekly-program-view {
    padding: 1rem;
}

.week-selector {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.week-selector h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.week-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.week-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 600;
}

.week-btn:hover,
.week-btn.active {
    background: var(--accent);
    color: var(--white);
}

.weekly-schedule {
    margin-bottom: 2rem;
}

.week-schedule h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.schedule-table {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.day-header {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.day-duration {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.exercises-list {
    padding: 1.5rem;
}

.exercise-table {
    width: 100%;
    border-collapse: collapse;
}

.exercise-table th {
    background: var(--gray-50);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
}

.exercise-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.exercise-table tr:last-child td {
    border-bottom: none;
}

.exercise-name {
    font-weight: 600;
    color: var(--gray-900);
}

.exercise-sets {
    color: var(--primary);
    font-weight: 600;
}

.exercise-rest {
    color: var(--gray-600);
}

/* ========== PROGRAM DETAY GÖRÜNÜMÜ ========== */
.program-detail-view {
    padding: 1rem;
}

.program-overview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    border-left: 4px solid var(--primary);
}

.stat-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-card span {
    font-weight: 600;
    color: var(--gray-900);
}

.equipment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.muscle-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.muscle-group {
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--radius-md);
    font-weight: 500;
}

.program-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

/* ========== PROGRAM KARTI İYİLEŞTİRMELERİ ========== */
.program-features {
    margin-top: 1.5rem;
}

.feature-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--gray-700);
}

/* ========== RESPONSIVE TASARIM ========== */

/* Orta boy cihazlar (992px altı) */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image-content {
        font-size: 8rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    header .container {
        padding: 1rem 1.5rem;
    }
    
    .mobile-menu {
        display: block;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        z-index: 999;
    }
    
    nav ul.active {
        display: flex !important;
    }
    
    nav li {
        width: 100%;
        text-align: center;
    }
    
    nav a {
        display: block;
        padding: 0.75rem 1rem;
    }

    .page-title {
        font-size: 2.5rem;
    }
    
    .quick-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .program-filter-bar {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding: 2rem;
        margin: -4rem auto 2.5rem;
    }
    
    .filter-actions {
        grid-column: 1 / -1;
    }
    
    #programGrid {
        grid-template-columns: 1fr;
        max-width: 650px;
        margin: 0 auto;
        gap: 2rem;
    }

    .program-card {
        flex-direction: row;
    }

    .program-header {
        min-width: 180px;
        max-width: 180px;
        padding: 1.5rem;
    }

    .program-body {
        padding: 1.5rem;
    }
    
    .program-footer {
        padding: 1.5rem;
    }
    
    .program-overview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .overview-stats {
        grid-template-columns: 1fr;
    }
    
    .program-actions {
        flex-direction: column;
    }
    
    .exercise-table {
        font-size: 0.9rem;
    }
    
    .exercise-table th,
    .exercise-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .week-buttons {
        justify-content: center;
    }
}
 img, video, canvas, iframe { max-width: 100%; height: auto; }
        table { width: 100%; max-width: 100%; }
        .table-container { overflow-x: auto; }
        /* Uzun kelimeleri kırarak yatay kaymayı azalt */
        body, p, li, h1, h2, h3, h4, h5, h6 { overflow-wrap: anywhere; word-break: break-word; }

/* Küçük cihazlar (768px altı) */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .modal-program-header {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .program-meta-large {
        justify-content: space-around;
        width: 100%;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .workout-schedule {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .features {
        padding: 4rem 0;
    }
    
    .features h2 {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 4rem 0 5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .quick-stats {
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .stat-item i {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .program-filter-bar {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        margin: -3rem auto 2rem;
    }
    .program-card {
        flex-direction: column;
    }
    
    .program-header {
        min-width: 100%;
        max-width: 100%;
    }

    .program-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .program-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .schedule-day {
        margin-bottom: 1rem;
    }
    
    .day-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .exercise-table {
        display: block;
        overflow-x: auto;
    }
}

/* Ekstra küçük cihazlar (480px altı) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-image-content {
        font-size: 6rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .quick-stats {
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-md);
        width: 100%;
    }
    
    .program-filter-bar {
        padding: 1rem;
    }
    
    .filter-group label {
        font-size: 0.9rem;
    }
    
    .filter-group select {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
    }
    
    .program-header {
        padding: 1.5rem 1rem;
    }

    .program-emoji {
        font-size: 2.5rem;
    }

    .program-title {
        font-size: 1.4rem;
    }

    .program-body {
        padding: 1.5rem 1rem;
    }
    
    .program-stats {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: var(--radius-md);
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1.5rem;
    }
}

/* ========== PRİNT STİLLERİ ========== */
@media print {
    header,
    footer,
    .mobile-menu,
    .program-filter-bar,
    .btn,
    .modal-close,
    .close-btn {
        display: none !important;
    }
    
    .program-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
    
    body {
        background: var(--white);
    }
}