/* main.css - Redesigned for Slottica - v10 FINAL GAME GRID FIX */

/* --- Variables and Base Styles --- */
:root {
    --primary-color: #1245ff;
    --secondary-color: #2ec417;
    --dark-bg: #1a1c28;
    --light-bg: #252837;
    --text-color: #f0f0f0;
    --text-muted: #a0a0b0;
    --card-bg: #ffffff;
    --card-text-color: #1a1c28;
    --border-radius: 12px;
    --container-width: 1200px;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding-top: 70px;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* --- Buttons --- */
.btn { display: inline-block; padding: 10px 20px; border-radius: var(--border-radius); text-decoration: none; font-weight: bold; text-align: center; cursor: pointer; transition: all 0.3s ease; border: none; }
.btn-primary { background-color: var(--secondary-color); color: #fff; }
.btn-primary:hover { background-color: #25a314; transform: translateY(-2px); }
.btn-secondary { background-color: var(--light-bg); color: var(--text-color); border: 1px solid var(--primary-color); }
.btn-secondary:hover { background-color: var(--primary-color); }

/* --- Header & Mobile Nav --- */
.site-header { background-color: var(--light-bg); padding: 15px 0; position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.site-logo img { height: 40px; display: block; }
.main-nav, .header-actions { display: none; }
.nav-toggle { display: block; background: none; border: none; cursor: pointer; padding: 5px; z-index: 1001; }
.hamburger { display: block; width: 25px; height: 3px; background-color: var(--text-color); position: relative; transition: background-color 0.2s ease; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 100%; height: 3px; background-color: var(--text-color); left: 0; transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease; }
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }
.mobile-nav.open ~ .site-header .hamburger { background-color: transparent; }
.mobile-nav.open ~ .site-header .hamburger::before { transform: rotate(45deg); top: 0; }
.mobile-nav.open ~ .site-header .hamburger::after { transform: rotate(-45deg); bottom: 0; }
.mobile-nav { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--dark-bg); transform: translateX(-100%); transition: transform 0.3s ease-in-out; z-index: 999; padding: 80px 20px 20px 20px; overflow-y: auto; display: flex; flex-direction: column; }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav ul li a { color: var(--text-color); text-decoration: none; display: block; padding: 15px; font-size: 1.2rem; border-bottom: 1px solid var(--light-bg); }
.mobile-bottom-bar { display: none; }

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: 30px;
    background-color: var(--light-bg);
}
.slider-container {
    display: grid;
}
.slide, .slider-nav {
    grid-area: 1 / 1;
}
.slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease-in-out, visibility 0.7s ease-in-out;
}
.slide.active {
    opacity: 1;
    visibility: visible;
}
.slide img {
    width: 100%;
    height: auto;
    display: block;
}
.slide-content {
    position: absolute;
    bottom: 8%;
    left: 5%;
    color: #fff;
    padding: 10px;
    max-width: 85%;
    z-index: 3;
    pointer-events: none;
}
.slide-content .btn {
    pointer-events: auto;
}
.slide-content h2 { margin: 0 0 5px; font-size: 1.5rem; }
.slide-content p { margin: 0 0 10px; font-size: 1rem; }
.slider-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
    z-index: 4;
    pointer-events: none;
}
.slider-nav button {
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: auto;
}
.hero-slider:hover .slider-nav button {
    opacity: 1;
}
.slider-nav button:hover {
    background: rgba(0,0,0,0.6);
    transform: scale(1.1);
}

/* --- Content Sections --- */
.section-title { text-align: center; font-size: 2.2rem; margin: 40px 0 30px; color: var(--primary-color); }

/* ======================================================= */
/* === FINAL GAME GRID FIX === */
/* ======================================================= */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
.game-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    background-color: var(--light-bg);
    /* REMOVED aspect-ratio to let the image define the height */
}
.game-card-img {
    width: 100%;
    height: auto; /* Let height be automatic to maintain aspect ratio */
    display: block;
    transition: transform 0.4s ease;
    /* REMOVED object-fit and height: 100% */
}
.game-card:hover .game-card-img { transform: scale(1.1); }
.game-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.game-card:hover .game-card-overlay { opacity: 1; }
.game-card-overlay h3 { margin: 0 0 10px; color: #fff; font-size: 1rem; transform: translateY(20px); transition: transform 0.4s ease; }
.game-card:hover .game-card-overlay h3 { transform: translateY(0); }
.game-card-overlay .btn { padding: 5px 10px; font-size: 0.9rem; margin-top: 5px; transform: translateY(20px); transition: transform 0.4s ease 0.1s; }
.game-card:hover .game-card-overlay .btn { transform: translateY(0); }
/* ======================================================= */
/* === END OF GAME GRID FIX === */
/* ======================================================= */

.content-section { padding: 40px 0; line-height: 1.7; }
.content-section p { color: var(--text-muted); }
.content-section h2 { color: var(--text-color); }
.info-table-wrapper { overflow-x: auto; margin: 30px 0; }
.info-table { width: 100%; border-collapse: collapse; background-color: var(--light-bg); border-radius: var(--border-radius); overflow: hidden; }
.info-table th, .info-table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--dark-bg); }
.info-table th { color: var(--primary-color); font-size: 1.1rem; }

/* --- Footer --- */
.site-footer-bottom { background-color: var(--light-bg); padding: 30px 0; margin-top: 40px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: var(--secondary-color); margin-bottom: 15px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; }
.footer-col ul li a:hover { color: var(--text-color); }
.payment-icons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.payment-icons img { height: 25px; }
.footer-bottom-bar { border-top: 1px solid var(--dark-bg); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; color: var(--text-muted); }
.footer-logos { display: flex; gap: 15px; align-items: center; }
.footer-logos img { height: 30px; }


/* --- Media Queries for Responsiveness --- */
@media (max-width: 767px) {
    body { padding-bottom: 80px; }
    .mobile-bottom-bar { display: flex; gap: 10px; position: fixed; bottom: 0; left: 0; right: 0; padding: 15px; background-color: var(--light-bg); box-shadow: 0 -2px 10px rgba(0,0,0,0.3); z-index: 950; }
    .mobile-bottom-bar .btn { flex: 1; }
    .slide.active { display: flex; flex-direction: column; }
    .slide img { border-radius: var(--border-radius) var(--border-radius) 0 0; }
    .slide-content {
        position: static;
        max-width: 100%;
        background-color: var(--card-bg);
        color: var(--card-text-color);
        padding: 15px;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 0 15px;
    }
    .slide-content h2 { grid-column: 1 / 2; grid-row: 1 / 2; font-size: 1.1rem; font-weight: 700; margin: 0; }
    .slide-content p { grid-column: 1 / 2; grid-row: 2 / 3; font-size: 0.8rem; margin: 4px 0 0; }
    .slide-content .btn {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
        background-color: var(--primary-color);
        color: white;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        padding: 0;
        font-size: 0;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>');
        background-repeat: no-repeat;
        background-position: center;
        background-size: 20px;
    }
    .slider-nav {
        display: none;
    }
}

/* Tablet and Desktop styles */
@media (min-width: 768px) {
    .nav-toggle { display: none; }
    .main-nav { display: block; }
    .header-actions { display: flex; align-items: center; gap: 10px; }
    .nav-list { display: flex; gap: 25px; list-style: none; margin: 0; padding: 0; }
    .nav-list a { color: var(--text-muted); text-decoration: none; font-weight: bold; transition: color 0.3s ease; }
    .nav-list a:hover { color: var(--text-color); }
    .slide-content h2 { font-size: 2.5rem; }
    .slide-content p { font-size: 1.1rem; }
    .section-title { font-size: 2.5rem; }
    .game-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .slide-content { left: 10%; max-width: 40%; }
}

.pros-cons-section {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    /* Changed to a dark background to match the site theme */
    background-color: #1a1c28; 
    padding: 50px 20px;
    text-align: center;
}

.pros-cons-section h2 {
    font-size: 28px;
    /* Changed text to a lighter, brand color */
    color: #007bff;
    margin-bottom: 40px;
}

/* Flex container for the columns */
.pros-cons-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* Allows columns to stack on mobile */
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

/* Shared styles for both columns */
.pros-column,
.cons-column {
    /* Changed to a slightly lighter dark shade for the card background */
    background-color: #252837; 
    border-radius: 12px;
    padding: 25px;
    flex: 1; /* Each column takes up equal space */
    min-width: 280px; /* Minimum width before stacking */
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pros-column h3,
.cons-column h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    /* Changed border color for dark theme */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    padding-bottom: 10px;
}

.pros-column ul,
.cons-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-column li,
.cons-column li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    line-height: 1.6;
    /* Changed text color to be light and readable */
    color: #d0d2d6; 
}

/* Add space between list items */
.pros-column li + li,
.cons-column li + li {
    margin-top: 15px;
}

/* Icon styling using ::before pseudo-element */
.pros-column li::before,
.cons-column li::before {
    content: '';
    flex-shrink: 0; /* Prevents icon from shrinking */
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-top: 2px;
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

/* === PROS COLUMN SPECIFIC STYLES === */
.pros-column h3 {
    color: #28a745; /* Bright green for pros header */
}

.pros-column li::before {
    /* Changed to a dark, subtle green background */
    background-color: rgba(40, 167, 69, 0.15); 
    /* Embedded SVG checkmark icon with a brighter stroke */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="3" stroke="%2328a745"><path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5" /></svg>');
}

/* === CONS COLUMN SPECIFIC STYLES === */
.cons-column h3 {
    color: #dc3545; /* Bright red for cons header */
}

.cons-column li::before {
    /* Changed to a dark, subtle red background */
    background-color: rgba(220, 53, 69, 0.1); 
    /* Embedded SVG cross icon with a brighter stroke */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="3" stroke="%23dc3545"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" /></svg>');
}