/* 
   SlotGratisOnline.net - Master Stylesheet 2025
   Palette: 
   - Deep Blue: #0a192f (Main BG)
   - Accent Blue: #112240 (Cards)
   - Bright Blue: #3b82f6 (Primary Action)
   - Header: White with #0a192f text
*/

/* --- Reset & Base --- */
* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #0a192f; 
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 300;
}

h1, h2, h3, h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }

a {
    color: #3b82f6;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* --- Header (Forced White Design) --- */
header {
    background-color: white !important; 
    color: #0a192f !important;
    padding: 0.5rem 2rem !important;
    border-bottom: 2px solid #3b82f6 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    position: sticky;
    top: 0;
    z-index: 9999;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 3.5rem;
    width: auto;
    max-width: 220px;
    display: block;
}

ul#nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

nav a {
    color: #0a192f !important;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 1px solid transparent;
}

nav a:hover, nav a.active {
    background: #f0f4f8;
    border-color: #3b82f6;
    color: #3b82f6 !important;
}

.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #0a192f;
    background: none;
    border: none;
}

/* --- Content & Layout --- */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.breadcrumbs {
    padding: 1rem 2rem;
    font-size: 0.9rem;
    color: #a0aec0;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Game Section --- */
#play-button {
    white-space: nowrap;
    display: inline-block;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    #play-button {
        font-size: 1.1rem !important;
        padding: 1rem 2rem !important;
    }
}

/* --- Cookie Banner (Professional Desktop & Mobile) --- */
#cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 10000;
    background: #112240;
    color: white;
    padding: 1.5rem 2.5rem;
    border-top: 3px solid #3b82f6;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#cookie-banner.show { transform: translateY(0); }

#cookie-banner .cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}

#cookie-banner .cookie-text {
    flex: 1;
    max-width: 55%;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Professional Banner Buttons */
#cookie-banner button {
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Accetta Tutto (Gradient) */
#cookie-banner .btn-accept { 
    background: linear-gradient(135deg, #3b82f6, #2563eb); 
    color: white; 
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
#cookie-banner .btn-accept:hover { 
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
}

/* Personalizza (Modern Dark) */
#cookie-banner .btn-customize { 
    background: #1e3a8a; 
    color: white; 
    border: 1px solid rgba(59, 130, 246, 0.3);
}
#cookie-banner .btn-customize:hover { 
    background: #2563eb;
    transform: translateY(-2px);
}

/* Rifiuta (Outline Subtle) */
#cookie-banner .btn-decline { 
    background: transparent; 
    color: #cbd5e0; 
    border: 1px solid #1e3a8a !important; 
}
#cookie-banner .btn-decline:hover { 
    background: rgba(255,255,255,0.05); 
    color: white;
    transform: translateY(-2px);
}

/* --- Modal Preferenze (Scrollable & Professional) --- */
#cookie-preferences {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 25, 47, 0.96);
    z-index: 10001;
    display: none;
    justify-content: center;
    align-items: flex-start; 
    padding: 2rem 1rem;
    backdrop-filter: blur(8px);
    overflow-y: auto;
}

#cookie-preferences.show { display: flex !important; }

#cookie-preferences .modal {
    background: #112240;
    border: 1px solid #3b82f6;
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 550px;
    width: 100%;
    margin: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.cookie-category {
    background: #0a192f;
    padding: 1.2rem;
    margin: 1rem 0;
    border-radius: 12px;
    border: 1px solid #1e3a8a;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.modal-buttons button {
    flex: 1;
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

.modal-buttons .btn-accept {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.modal-buttons .btn-decline {
    background: #0a192f;
    color: #cbd5e0;
    border: 1px solid #1e3a8a !important;
}

/* --- Toggles --- */
.toggle-switch {
    width: 48px; height: 24px;
    background: #1e3a8a; border-radius: 50px;
    position: relative; cursor: pointer;
}
.toggle-switch.active { background: #3b82f6; }
.toggle-slider {
    width: 18px; height: 18px; background: white;
    border-radius: 50%; position: absolute;
    top: 3px; left: 3px; transition: 0.3s;
}
.toggle-switch.active .toggle-slider { transform: translateX(24px); }

/* --- Responsive Queries --- */
@media (max-width: 992px) {
    #cookie-banner .cookie-content { flex-direction: column; text-align: center; gap: 1.5rem; }
    #cookie-banner .cookie-text { max-width: 100%; }
    .cookie-buttons { white-space: normal; justify-content: center; }
}

@media (max-width: 768px) {
    header { padding: 0.5rem 1rem !important; }
    .hamburger { display: block; }
    
    ul#nav-menu {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: white; flex-direction: column;
        padding: 1.5rem; border-top: 1px solid #eee;
    }
    
    ul#nav-menu.open { display: flex; }
    
    .cookie-buttons { flex-direction: column; width: 100%; }
    #cookie-banner button { width: 100%; }
    .modal-buttons { flex-direction: column; }
}