/* ============================================
   Best3Slots - Main Stylesheet
   Modern, Clean, Professional Casino Design
   ============================================ */

/* === CSS Variables === */


@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


:root {
    --primary-color: #ff6b35;
    --secondary-color: #1a1a2e;
    --accent-color: #ffd700;
    --success-color: #00b894;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --bg-light: rgb(4, 15, 45);
    --bg-white: #ffffff;
    --border-color: #e1e8ed;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --gradient-primary: linear-gradient(180deg, rgb(139, 227, 252) 0%, rgb(47, 83, 181) 100%);
    --gradient-dark: linear-gradient(135deg, rgb(5, 19, 60) 0%, rgb(4, 15, 45) 100%);
    --gradient-accent: linear-gradient(0deg, #ff9c19 40%, #ffdd2d 110%);
}

/* === Reset & Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* === Container === */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header === */
.header {
    background: var(--gradient-dark);
    padding: 1.2rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255, 221, 45, 0) 0%, 
        rgba(255, 221, 45, 0.2) 15%, 
        rgba(255, 221, 45, 0.6) 30%, 
        rgba(255, 221, 45, 1) 50%, 
        rgba(255, 221, 45, 0.6) 70%, 
        rgba(255, 221, 45, 0.2) 85%, 
        rgba(255, 221, 45, 0) 100%);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255, 221, 45, 0) 0%, 
        rgba(255, 221, 45, 0.2) 15%, 
        rgba(255, 221, 45, 0.6) 30%, 
        rgba(255, 221, 45, 1) 50%, 
        rgba(255, 221, 45, 0.6) 70%, 
        rgba(255, 221, 45, 0.2) 85%, 
        rgba(255, 221, 45, 0) 100%);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-placeholder {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.site-name {
    color: var(--bg-white);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.country-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 8px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    color: white;
}

.flag {
    font-size: 1rem;
}

.country-name {
    color: var(--bg-white);
    font-weight: 600;
    font-size: 1rem;
}

/* === Hero Section === */
.hero {
    background: rgb(5, 19, 60);
    padding: 4rem 0;
    text-align: end;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 15, 45, 0.6);
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
   
    margin-bottom: 1rem;
    position: relative;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    z-index: 3;
}

.hero-title span {
     background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-transform: uppercase;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    /* margin-right: auto; */
    position: relative;
    z-index: 3;
}

.hero-trust {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
    position: relative;
    z-index: 3;
}

/* === Offers Section === */
.offers {
    padding: 4rem 0;
    background: rgba(5, 19, 60, 1);
    position: relative;
    overflow: hidden;
}

.offers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/181490574_9d9a427f-67b8-45ad-833f-48f5ab7b0dc9.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 0;
}

.offers::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255, 221, 45, 0) 0%, 
        rgba(255, 221, 45, 0.2) 15%, 
        rgba(255, 221, 45, 0.6) 30%, 
        rgba(255, 221, 45, 1) 50%, 
        rgba(255, 221, 45, 0.6) 70%, 
        rgba(255, 221, 45, 0.2) 85%, 
        rgba(255, 221, 45, 0) 100%);
    z-index: 2;
}

.offers .container {
    position: relative;
    z-index: 1;
}

.offers .container::before {
    content: '';
    position: absolute;
    top: -4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255, 221, 45, 0) 0%, 
        rgba(255, 221, 45, 0.2) 15%, 
        rgba(255, 221, 45, 0.6) 30%, 
        rgba(255, 221, 45, 1) 50%, 
        rgba(255, 221, 45, 0.6) 70%, 
        rgba(255, 221, 45, 0.2) 85%, 
        rgba(255, 221, 45, 0) 100%);
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
      background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-transform: uppercase;
}

/* === Offers Table === */
.offers-table {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
        box-shadow: -3.828px -3.828px 6px 0px rgba(255, 200, 39, 0.4), 3px 5px 8px 0px rgba(255, 82, 1, 0.2);
}

.table-header {
    display: grid;
    grid-template-columns: 90px 340px 280px 200px;
    gap: 20px;
    padding: 20px 30px;
    background: var(--gradient-dark);
    color: var(--bg-white);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offer-card {
    position: relative;
    display: grid;
    grid-template-columns: 90px 340px 280px 200px;
    gap: 20px;
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.offer-card:last-child {
    border-bottom: none;
}

.offer-card:hover {
   
    transform: translateX(4px);
}

/* Rank Badge */
.rank-badge {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--gradient-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.rank-badge.best {
    background: var(--gradient-primary);
    position: relative;
}


.rank-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--bg-white);
    line-height: 1;
}

.rank-label {
    font-size: 0.65rem;
    color: var(--bg-white);
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 2px;
}

/* Casino Info */
.col-casino {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.casino-logo {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.casino-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.casino-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.stars {
    color: var(--accent-color);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.rating-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Bonus Column */
.col-bonus {
    text-align: center;
}

.bonus-amount {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 5px;
}

.bonus-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.bonus-extra {
    font-size: 0.85rem;
    color: rgb(47, 83, 181);
    font-weight: 600;
}

/* Features Column */
.col-features {
    padding-left: 10px;
}

.features-list {
    list-style: none;
    font-size: 0.9rem;
}

.features-list li {
    margin-bottom: 6px;
    color: var(--text-secondary);
}

/* Action Column */
.col-action {
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 40px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button.primary {
    background: var(--gradient-accent);
    color: var(--bg-light);
    box-shadow: var(--shadow-sm);
    box-shadow: -3.828px -3.828px 6px 0px rgba(255, 200, 39, 0.4), 3px 5px 8px 0px rgba(255, 82, 1, 0.2);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.terms {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* === Content Section === */
.content-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.content-grid {
    display: grid;
    gap: 2.5rem;
}

.content-block {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.content-block h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
}

.content-block p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-block ul,
.content-block ol {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.content-block li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.content-block strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Categories */
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.5rem;
}

.category-tag {
    background: var(--gradient-primary);
    color: var(--bg-white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* === Footer === */
.footer {
    background: var(--gradient-dark);
    color: var(--bg-white);
    padding: 3rem 0 1.5rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255, 221, 45, 0) 0%, 
        rgba(255, 221, 45, 0.2) 15%, 
        rgba(255, 221, 45, 0.6) 30%, 
        rgba(255, 221, 45, 1) 50%, 
        rgba(255, 221, 45, 0.6) 70%, 
        rgba(255, 221, 45, 0.2) 85%, 
        rgba(255, 221, 45, 0) 100%);
}

.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255, 221, 45, 0) 0%, 
        rgba(255, 221, 45, 0.2) 15%, 
        rgba(255, 221, 45, 0.6) 30%, 
        rgba(255, 221, 45, 1) 50%, 
        rgba(255, 221, 45, 0.6) 70%, 
        rgba(255, 221, 45, 0.2) 85%, 
        rgba(255, 221, 45, 0) 100%);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-images {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-images img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-legal-links {
    margin-top: 0.5rem;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.footer-legal-links a {
    color: var(--bg-white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-legal-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-legal-links span {
    opacity: 0.5;
}

/* === Exit Popup === */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.exit-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.exit-popup.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.popup-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-align: center;
}

.popup-content > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-form input {
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.popup-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.popup-form button {
    margin-top: 10px;
}

.popup-privacy {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* === Tablet (768px - 1024px) === */
@media (max-width: 1024px) {
    .container{
        max-width: 800px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .table-header,
    .offer-card {
        grid-template-columns: 70px 240px 200px 160px;
        gap: 10px;
        padding: 15px;
    }
    
    .casino-logo {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .casino-info img {
        width: 180px !important;
    }
    
    .casino-name {
        font-size: 1rem;
    }
    
    .bonus-amount {
        font-size: 1.5rem;
    }
    
    .features-list {
        font-size: 0.75rem;
    }
    
    .features-list li {
        margin-bottom: 4px;
    }
    
    .cta-button {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .footer-content {
        padding: 1rem 0;
    }
    
    .footer-images {
        gap: 1.5rem;
    }
    
    .footer-images img {
        height: 50px;
    }
}

@media (min-width: 991px) and (max-width: 1024px) {
    .header {
        padding: 0;
    }
    .hero {
        padding: 2rem 0;
    }
    .offers {
        padding-top: 2rem;
    }
    .section-title {
        margin-bottom: 2rem;
    }
    .table-header, .offer-card {
        grid-template-columns: 70px 240px 200px 200px;
    }
}
@media (max-height: 800px) {
    .header {
        padding: 0;
    }
    .hero {
        padding: 2rem 0;
    }
}

/* === Mobile (max 767px) === */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
        
    }
    
    /* Header */
    .header {
        padding: 1rem 0;
    }
    
    .logo-placeholder {
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }
    
    .site-name {
        font-size: 1.5rem;
    }
    
    .country-name {
        display: none;
    }
    
    /* Hero */
    .hero {
        padding: 2.5rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-trust {
        font-size: 0.9rem;
    }
    
    /* Offers */
    .offers {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    /* Table to Card Layout */
    .table-header {
        display: none;
    }
    
    .offers-table {
        box-shadow: none;
        background: transparent;
    }
    
    .offer-card {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 25px;
        margin-bottom: 20px;
        border-radius: 16px;
        border: 2px solid var(--border-color);
        box-shadow: var(--shadow-md);
    }
    
    .offer-card:hover {
        transform: translateY(-4px);
    }
    
    .col-rank {
        align-self: flex-start;
        position: absolute;
    }
    
    .rank-badge {
        width: 50px;
        height: 50px;
    }
    
    .rank-number {
        font-size: 1.5rem;
    }
    
    .col-casino {
        width: 100%;
    }
    
    .casino-logo {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
    
    .casino-name {
        font-size: 1.3rem;
    }
    
    .col-bonus {
        text-align: left;
        width: 100%;
    }
    
    .bonus-amount {
        font-size: 2rem;
        text-align: center;
    }
    .bonus-extra,
    .bonus-details {
        text-align: center;
    }
    
    .col-features {
        width: 100%;
        padding-left: 0;
    }
    
    .features-list {
        font-size: 0.9rem;
    }
    
    .col-action {
        width: 100%;
    }
    
    .cta-button {
        width: 100%;
        padding: 16px;
        font-size: 1.1rem;
    }
    
    /* Content */
    .content-section {
        padding: 2.5rem 0;
    }
    
    .content-block {
        padding: 1.5rem;
    }
    
    .content-block h2 {
        font-size: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-images {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-images img {
        height: 45px;
    }
    
    .footer-legal-links {
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-legal-links span {
        display: none;
    }
    
    /* Popup */
    .popup-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }
    
    .popup-content h2 {
        font-size: 1.6rem;
    }
}

/* === Small Mobile (max 480px) === */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .offer-card {
        padding: 20px;
    }
    
    .categories {
        gap: 8px;
    }
    
    .category-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* === Print Styles === */
@media print {
    .header,
    .cta-button,
    .exit-popup,
    .footer-links,
    .footer-legal {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .offer-card {
        page-break-inside: avoid;
    }
}