/* Modern Video Gallery Styles */



/* CSS Variables */
:root {
    --emerald-500: #cc9f52;
    --emerald-600: #059669;
    --cyan-500: #f7e6cd;
    --cyan-600: #0891b2;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #28283a;
    --slate-800: #36364d;
    --slate-900: #28283a;
    --white: #ffffff;
    --black: #000000;
    --rose-500: #f43f5e;
    --gradient-emerald-cyan: linear-gradient(135deg, var(--emerald-500), var(--cyan-500));
    --gradient-bg-dark: linear-gradient(180deg, var(--slate-900) 0%, var(--slate-800) 100%);
    --gradient-bg-light: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 100%);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

/* Theme Styles */
body.dark {
    background: var(--gradient-bg-dark);
    color: var(--white);
}

body.light {
    background: var(--gradient-bg-light);
    color: var(--slate-900);
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .header {
    background: #28283a;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.light .header {
    background: rgba(255, 255, 255, 0.8);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-circle {
      width: 85px;
    height: 85px;
    background: var(--gradient-emerald-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.logo-circle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-emerald-cyan);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.875rem;
    opacity: 0.7;
    line-height: 1.2;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 500px;
  
    position: center;
    text-align: center;
    margin: 0 auto 40px auto; /* üst: 0, sağ: auto, alt: 20px, sol: auto */
    width: 100%;
}

.desktop-search {
    display: none;
}

@media (min-width: 768px) {
    .desktop-search {
        display: block;
    }
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid;
    font-size: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.dark .search-input {
    background: rgba(30, 41, 59, 0.5);
    border-color: var(--slate-600);
    color: var(--white);
}

.dark .search-input:focus {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.dark .search-input::placeholder {
    color: var(--slate-400);
}

.light .search-input {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--slate-300);
    color: var(--slate-900);
}

.light .search-input:focus {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.light .search-input::placeholder {
    color: var(--slate-500);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icons {
    display: none;
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .social-icons {
        display: flex;
    }
}

.social-icons a {
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    color: inherit;
    opacity: 0.7;
}

.social-icons a:hover {
    opacity: 1;
    transform: scale(1.1);
}

.dark .social-icons a:hover {
    background: rgba(30, 41, 59, 0.5);
    color: var(--emerald-400);
}

.light .social-icons a:hover {
    background: rgba(248, 250, 252, 0.8);
    color: var(--emerald-600);
}

.theme-toggle {
    padding: 0.5rem;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
     margin-left: auto; 

}

.theme-toggle:hover {
    transform: scale(1.1);
}

.dark .theme-toggle:hover {
    background: rgba(30, 41, 59, 0.5);
    color: #fbbf24;
}

.light .theme-toggle:hover {
    background: rgba(248, 250, 252, 0.8);
    color: #f97316;
}

.mobile-search {
    display: block;
    padding: 0 1.5rem 1rem;
}

@media (min-width: 768px) {
    .mobile-search {
        display: none;
    }
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Hero Section */
.hero-section {
    margin-bottom: 4rem;
    opacity: 1;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.hero-left {
    space-y: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
}

.dark .hero-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.light .hero-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald-600);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 1rem 0;
    background: var(--gradient-emerald-cyan);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 1.125rem;
    margin: 1rem 0;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.stat svg {
    color: var(--emerald-500);
}

.like-stat {
    cursor: pointer;
    transition: var(--transition);
}

.like-stat:hover {
    color: var(--rose-500);
    transform: scale(1.05);
}

.like-stat svg {
    color: var(--rose-500);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    margin: 1rem 0;
    opacity: 0.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    line-height: 1;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gradient-emerald-cyan);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    box-shadow: var(--shadow-xl);
}

.btn-outline {
    background: transparent;
    border: 2px solid;
}

.dark .btn-outline {
    border-color: var(--slate-600);
    color: var(--slate-300);
}

.dark .btn-outline:hover {
    border-color: var(--emerald-500);
    color: var(--emerald-400);
    background: rgba(16, 185, 129, 0.05);
}

.light .btn-outline {
    border-color: var(--slate-300);
    color: var(--slate-700);
}

.light .btn-outline:hover {
    border-color: var(--emerald-500);
    color: var(--emerald-600);
    background: rgba(16, 185, 129, 0.05);
}

.hero-right {
    position: relative;
}

.hero-video {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 16 / 9;
}

.hero-video:hover {
    transform: scale(1.02);
}

.hero-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.hero-video:hover img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--gradient-emerald-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-2xl);
    transition: var(--transition);
    z-index: 2;
}

.play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.duration-badge {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2;
}

.floating-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
    z-index: -1;
}

.floating-bg-1 {
    top: -1rem;
    right: -1rem;
    width: 6rem;
    height: 6rem;
    background: var(--gradient-emerald-cyan);
}

.floating-bg-2 {
    bottom: -1.5rem;
    left: -1.5rem;
    width: 8rem;
    height: 8rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    animation-delay: 1s;
}

/* Popular Section */
.popular-section {
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-icon {
    padding: 0.75rem;
    background: linear-gradient(135deg, #aa1b2c, #aa1b2c);
    border-radius: 50%;
    color: var(--white);
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
}

.section-header p {
    font-size: 0.875rem;
    opacity: 0.7;
    margin: 0;
}

.popular-carousel {
    position: relative;
}

.popular-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0 1.5rem;
       /* scrollbar-width: none;
    -ms-overflow-style: none;*/
}
/*
.popular-grid::-webkit-scrollbar {
    display: none;
}
*/
.popular-card {
    flex-shrink: 0;
    width: 320px;
    height: 180px;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.popular-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.popular-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.popular-card:hover img {
    transform: scale(1.1);
}

.popular-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.popular-rank {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.75rem;
    z-index: 3;
}

.popular-duration {
    display: none;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 3;
}

.popular-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    color: var(--white);
    z-index: 2;
}

.popular-title {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
}

.popular-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.popular-category {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
}

.scroll-indicator {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    opacity: 0.6;
}

/* Videos Section */
.videos-section {
    opacity: 1;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.videos-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .videos-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.videos-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.videos-header p {
    opacity: 0.7;
    margin: 0;
}

.category-filters {
    display: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-btn {
    display: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid;
    background: transparent;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.dark .category-btn {
    display: none;
    border-color: var(--slate-600);
    color: var(--slate-300);
}

.dark .category-btn:hover {
    border-color: var(--emerald-500);
    color: var(--emerald-400);
    background: rgba(16, 185, 129, 0.1);
}

.dark .category-btn.active {
    background: var(--gradient-emerald-cyan);
    color: var(--white);
    border-color: transparent;
}

.light .category-btn {
    display: none;
    border-color: var(--slate-300);
    color: var(--slate-700);
}

.light .category-btn:hover {
    display: none;
    border-color: var(--emerald-500);
    color: var(--emerald-600);
    background: rgba(16, 185, 129, 0.1);
}

.light .category-btn.active {
    background: var(--gradient-emerald-cyan);
    color: var(--white);
    border-color: transparent;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.video-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    opacity: 1;
      transform: scale(1);
    animation: fadeInScale 0.6s ease-out forwards;
}

.dark .video-card {
    background: rgba(30, 41, 59, 0.3);
}

.light .video-card {
    background: var(--white);
}

.video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0.6;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: var(--gradient-emerald-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.video-card:hover .video-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    display: none;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.video-category-badge {
    display: none;
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.dark .video-category-badge {
    display: none;
    background: rgba(182, 3, 3, 0.747);
    color: #dbdada;
    border: 1px solid rgba(189, 12, 12, 0.3);
}

.light .video-category-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald-600);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark .video-card:hover .video-title {
    color: var(--emerald-400);
}

.light .video-card:hover .video-title {
    color: var(--emerald-600);
}

.video-description {
    display: none;
    display: none !important;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.video-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.video-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.video-stat svg {
    color: var(--emerald-500);
}

.video-stat.likes {
    cursor: pointer;
    transition: var(--transition);
}

.video-stat.likes:hover {
    color: var(--rose-500);
    transform: scale(1.1);
}

.video-stat.likes svg {
    color: var(--rose-500);
}

.video-date {
    display: none;
    font-size: 0.75rem;
    opacity: 0.6;
}

.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

/* Footer */
.footer {
    position: relative;
    margin-top: 5rem;
    border-top: 1px solid;
    overflow: hidden;
}

.dark .footer {
    background: #28283a;
    border-top-color: rgba(255, 255, 255, 0.1);
}

.light .footer {
    background: rgba(248, 250, 252, 0.5);
    border-top-color: rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--emerald-500);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-brand p {
    font-size: 0.875rem;
    opacity: 0.7;
    margin: 0;
}

.footer-description {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: inherit;
    text-decoration: none;
    font-size: 0.875rem;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--emerald-500);
    transform: translateX(4px);
}

.contact-info {
    space-y: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.contact-item svg {
    color: var(--emerald-500);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    border-top: 1px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        text-align: left;
    }
}

.dark .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.light .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.footer-bottom p {
    font-size: 0.875rem;
    opacity: 0.7;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    font-size: 0.875rem;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--emerald-500);
    transform: translateY(-2px);
}

.footer-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
    z-index: -1;
}

.footer-bg-1 {
    bottom: 0;
    left: 0;
    width: 16rem;
    height: 16rem;
    background: var(--gradient-emerald-cyan);
}

.footer-bg-2 {
    bottom: 0;
    right: 0;
    width: 20rem;
    height: 20rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    opacity: 0;
    transform: scale(0.8) translateY(50px);
    transition: var(--transition);
}

.modal.active .modal-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.dark .modal-content {
    background: rgba(15, 23, 42, 0.95);
}

.light .modal-content {
    background: rgba(255, 255, 255, 0.95);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    padding: 0.5rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.dark .modal-close {
    background: rgba(30, 41, 59, 0.8);
    color: var(--white);
}

.dark .modal-close:hover {
    background: var(--slate-700);
}

.light .modal-close {
    background: rgba(255, 255, 255, 0.8);
    color: var(--slate-900);
}

.light .modal-close:hover {
    background: var(--slate-100);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .modal-body {
        grid-template-columns: 2.5fr 1.5fr;
    }
}

.modal-video {
    aspect-ratio: 16 / 9;
}

.modal-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-sidebar {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 600px;
}

.dark .modal-sidebar {
    background: rgba(30, 41, 59, 0.5);
}

.light .modal-sidebar {
    background: rgba(248, 250, 252, 0.5);
}

.modal-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.dark .modal-category {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.light .modal-category {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald-600);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.modal-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.modal-info p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.modal-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-stat-item {
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.dark .modal-stat-item {
    background: rgba(51, 65, 85, 0.5);
}

.dark .modal-stat-item:hover {
    background: rgba(51, 65, 85, 0.7);
}

.light .modal-stat-item {
    background: rgba(255, 255, 255, 0.7);
}

.light .modal-stat-item:hover {
    background: rgba(255, 255, 255, 0.9);
}

.modal-stat-item svg {
    color: var(--emerald-500);
    margin-bottom: 0.5rem;
}

.modal-stat-item span {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.modal-stat-item strong {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-meta {
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.meta-item svg {
    color: var(--emerald-500);
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Utility Classes */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Loading Animation */
.loading {
    opacity: 0;
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
}

.loading.visible {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .popular-card {
   flex-shrink: 0;
    width: 320px;
    height: 180px;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    opacity: 1;
    transform: translateY(0) scale(1);
    }
    
    .category-filters {
        display: none;
        justify-content: center;
    }
}

/* Smooth Scrolling for Safari */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus States for Accessibility */
.btn:focus-visible,
.category-btn:focus-visible,
.theme-toggle:focus-visible,
.search-input:focus-visible {
    outline: 2px solid var(--emerald-500);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-outline {
        border-width: 3px;
    }
    
    .video-card,
    .popular-card {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  background-color: #333;
  color: #fff;
  border: none;
  outline: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  display: none; /* Başta gizli */
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s, background-color 0.3s;
}

#scrollTopBtn:hover {
  background-color: #f4cc18;
  color: #333;
}





