/* ============================================
   CasinoRoyal - Modern Casino Website
   Responsive & Cross-Compatible Design
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --accent-color: #ffd23f;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --gradient-secondary: linear-gradient(135deg, #004e89 0%, #0066cc 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

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

/* Header Styles */
.main-header {
    background: var(--dark-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
}

.header-left {
    justify-content: flex-start;
}

.header-center {
    justify-content: center;
}

.header-right {
    justify-content: flex-end;
}

.logo a {
    text-decoration: none;
    display: inline-block;
}

.logo-image {
    max-height: 60px;
    width: auto;
    height: auto;
    display: block;
}

.btn-site {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

.social-links-header {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-icon-header:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Header */
@media (max-width: 768px) {
    .header-content {
        grid-template-columns: 1fr auto 1fr;
        gap: 0.5rem;
    }
    
    .logo-image {
        max-height: 45px;
    }
    
    .btn-site {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .social-icon-header {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .social-links-header {
        gap: 0.5rem;
    }
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
}

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

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--dark-color);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-secondary);
    color: #fff;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px, 60px 60px;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

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

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    color: #1a1a2e;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.15rem;
    margin-bottom: 3rem;
    font-weight: 500;
    line-height: 1.6;
}

/* Promotions Section */
.promotions-section {
    background: #fff;
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.promotion-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.promotion-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}

.promotion-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.promotion-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Wins Section */
.wins-section {
    background: #f5f5f5;
    padding: 4rem 0;
}

.no-wins-info {
    text-align: center;
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    color: #4b5563;
    font-weight: 600;
}

.wins-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

.wins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
    grid-auto-rows: 1fr; /* Tüm kartlar aynı yükseklikte */
    align-items: stretch; /* Kartlar grid yüksekliğine uygun uzasın */
}

@media (min-width: 1600px) {
    .wins-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1400px) and (max-width: 1599px) {
    .wins-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .wins-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1000px) and (max-width: 1199px) {
    .wins-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 999px) {
    .wins-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .wins-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 479px) {
    .wins-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.win-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    cursor: pointer;
}

.win-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.win-card-image {
    width: 100%;
    padding-bottom: 138.55%; /* 460 / 332 = 1.3855 - yeni görsel oranı */
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.win-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
    display: block;
}

.win-card:hover .win-card-image img {
    transform: scale(1.05);
}

.win-card-content {
    padding: 0.85rem 1rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
    min-height: 0;
}

.win-game-name {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    color: #2d3748;
    text-align: left;
    margin: 0;
    padding: 0;
    display: block;
    height: auto;
    min-height: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.win-amount {
    text-align: left;
    padding: 0;
    background: transparent;
    border: none;
    line-height: 1.2;
}

.amount-value {
    font-size: 1.25rem;
    font-weight: 900;
    color: #28a745;
    display: inline-block;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.2px;
}

.amount-currency {
    font-size: 0.75rem;
    color: #28a745;
    font-weight: 600;
    display: inline-block;
    margin-left: 0.25rem;
}

.btn-watch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.75rem;
    background: #ff6b35;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
    margin-top: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-watch:hover {
    background: #ff7b45;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.4);
}

.btn-watch:active {
    transform: scale(0.98);
}

.btn-watch i {
    margin-right: 0.35rem;
    font-size: 0.75rem;
    flex-shrink: 0;
}


.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-secondary);
    color: #fff;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Footer */
/* Footer */
.main-footer {
    background: var(--dark-color);
    color: #fff;
    padding: 2rem 0 1rem;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.warning-text {
    color: var(--warning-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Mini Slider */
.mini-slider-section {
    background: #1b1140;
    padding: 1.2rem 0;
    overflow: hidden;
    position: relative;
}

.mini-slider-section::before,
.mini-slider-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    pointer-events: none;
}

.mini-slider-section::before {
    left: 0;
    background: linear-gradient(90deg, #1b1140 0%, rgba(27, 17, 64, 0) 100%);
}

.mini-slider-section::after {
    right: 0;
    background: linear-gradient(270deg, #1b1140 0%, rgba(27, 17, 64, 0) 100%);
}

.mini-slider-wrapper {
    width: 100%;
    overflow: hidden;
}

.mini-slider-track {
    display: flex;
    gap: 0;
    align-items: stretch;
    animation: sliderScroll 4s linear infinite; /* desktop varsayılan */
    will-change: transform;
    padding: 0;
}

.mini-slider-track:hover {
    animation-play-state: paused;
}

.mini-slider-item {
    min-width: 300px;
    max-width: 300px;
    margin-right: 12px; /* kartlar arasında boşluk */
}

.mini-slider-card {
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(40, 35, 70, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    border: 1px solid rgba(120, 80, 200, 0.4);
    min-height: 74px;
    max-height: 74px;
    height: 74px;
    flex-shrink: 0;
    flex-grow: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    cursor: pointer;
}

.mini-slider-left {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-slider-left img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    /* border: 2px solid rgba(255, 255, 255, 0.2); */
}

.mini-slider-right {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
    justify-content: center;
}

.mini-slider-right small {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 0.9;
}

.mini-slider-right span {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-slider-right b {
    color: #f6c34f;
    font-size: 1rem;
    white-space: nowrap;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .mini-slider-item {
        min-width: 280px;
        max-width: 280px;
    }
    
    .mini-slider-card {
        height: 68px;
        padding: 7px 12px;
        gap: 10px;
    }
    
    .mini-slider-left {
        width: 50px;
        height: 50px;
    }
    
    .mini-slider-track {
        animation-duration: 4s; /* mobil/tablet aynı hız */
    }
}

@media (max-width: 480px) {
    .mini-slider-item {
        min-width: 250px;
        max-width: 250px;
    }
    
    .mini-slider-card {
        height: 60px;
        padding: 6px 10px;
        gap: 8px;
    }
    
    .mini-slider-left {
        width: 45px;
        height: 45px;
        border-radius: 10px;
    }

    .mini-slider-right {
        height: auto;
    }
}

@keyframes sliderScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    margin: 5% auto;
    max-width: 900px;
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.modal-body {
    padding: 0;
}

#videoContainer {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

#videoFrame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--dark-color);
        flex-direction: column;
        padding: 1rem;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .main-nav ul li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 1rem;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .wins-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promotions-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons a {
        width: 100%;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .amount-value {
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.win-card:hover .win-game-icon {
    animation: pulse 1s infinite;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.hidden {
    display: none;
}

/* Print Styles */
@media print {
    .main-header,
    .main-footer,
    .hero-buttons,
    .btn-watch,
    .load-more-container {
        display: none;
    }
}

/* Parent Video Modal Styles */
.parent-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.parent-video-modal.active {
    display: flex !important;
}

.parent-video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.parent-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: #0a0023;
    border-radius: 20px;
    border: 2px solid rgba(120, 80, 200, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.parent-video-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 1000001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.parent-video-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.parent-video-modal-header {
    padding: 20px 50px 15px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.parent-video-modal-header h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.parent-video-modal-header p {
    color: #9792ff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.parent-video-modal-body {
    padding: 20px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.parent-video-modal-body video,
.parent-video-modal-body iframe {
    width: 100%;
    max-height: calc(90vh - 150px);
    border-radius: 10px;
    background: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .parent-video-modal-content {
        width: 95%;
        max-height: 80vh;
    }
    .parent-video-modal-body video,
    .parent-video-modal-body iframe {
        max-height: calc(80vh - 100px);
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .parent-video-modal-content {
        width: 100%;
        max-height: 90vh;
        border-radius: 0;
    }
    .parent-video-modal-body video,
    .parent-video-modal-body iframe {
        max-height: calc(90vh - 80px);
        min-height: 250px;
    }
}