/* Winsclose Norway Social Casino - Main Stylesheet */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
    color: #64b5f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #90caf9;
    text-decoration: underline;
}

/* Layout Framework */
.frame-winsclose-no {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.grid-shell-no {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.stratum-mainflow {
    padding: 2rem 0;
}

/* Header and Navigation */
.header-main {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand .brand-logo {
    font-size: 1.75rem;
    background: linear-gradient(45deg, #2196f3, #e91e63, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav-brand .brand-logo a {
    background: linear-gradient(45deg, #2196f3, #e91e63, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link:focus {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link[aria-current="page"] {
    background: linear-gradient(45deg, #2196f3, #9c27b0);
    color: white;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 0;
}

.hero-title {
    font-size: 3.5rem;
    background: linear-gradient(45deg, #2196f3, #e91e63, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #b0bec5;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* About Section */
.about-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1.2rem;
    padding: 3rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
}

.about-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #90caf9;
}

/* Games Section */
.games-section {
    padding: 3rem 0;
}

.games-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #90caf9;
}

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

.tile-gamelet {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1.2rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.tile-gamelet::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.tile-gamelet:hover::before {
    left: 100%;
}

.tile-gamelet:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.3);
}

.tile-gamelet h3 {
    color: #90caf9;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tile-gamelet p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-playpulse {
    background: linear-gradient(45deg, #2196f3, #9c27b0);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.btn-playpulse:hover, .btn-playpulse:focus {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
    outline: none;
}

.btn-playpulse:focus-visible {
    outline: 2px solid #90caf9;
    outline-offset: 2px;
}

/* Disclosure Panel */
.slab-disclosure-no {
    margin: 3rem 0 0;
    padding: 0 1rem;
}

.box-pastel {
    background: linear-gradient(135deg, #f8bbd9, #e1bee7, #c5cae9);
    border-radius: 1.2rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.rail-rg-ethos-no {
    color: #333;
}

.rail-rg-ethos-no p:first-child {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.rail-rg-ethos-no ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.rail-rg-ethos-no li {
    margin-bottom: 0.5rem;
}

.rail-rg-ethos-no small {
    font-style: italic;
    opacity: 0.8;
}

/* Age Gate Banner */
.bar-age-18no {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(45deg, #2196f3, #9c27b0, #e91e63);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.bar-age-18no[aria-hidden="false"] {
    transform: translateY(0);
}

.age-gate-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    flex-wrap: wrap;
}

.age-icon {
    font-size: 1.5rem;
}

.age-gate-content p {
    margin: 0;
    font-weight: 600;
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.age-gate-buttons {
    display: flex;
    gap: 1rem;
}

.btn-affirm-18, .btn-decline-18 {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-affirm-18:hover, .btn-affirm-18:focus,
.btn-decline-18:hover, .btn-decline-18:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
}

.btn-affirm-18:focus-visible,
.btn-decline-18:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Cookie Consent Drawer */
.drawer-consent {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    max-width: 400px;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.drawer-consent[aria-hidden="false"] {
    transform: translateX(0);
}

.stack-consent-prefs {
    padding: 1.5rem;
}

.consent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.consent-header h3 {
    margin: 0;
    color: #90caf9;
}

.consent-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: background 0.3s ease;
}

.consent-close:hover, .consent-close:focus {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.consent-body {
    margin-bottom: 1.5rem;
}

.consent-option {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.consent-option:last-child {
    border-bottom: none;
}

.consent-option-header {
    margin-bottom: 0.5rem;
}

.consent-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 600;
}

.switchlet-analytics-no {
    width: 20px;
    height: 20px;
    accent-color: #2196f3;
}

.switchlet-marketing-no {
    width: 20px;
    height: 20px;
    accent-color: #2196f3;
}

.consent-description {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    padding-left: 2.75rem;
}

.consent-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-consent-accept-all,
.btn-consent-reject,
.btn-consent-save {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-consent-accept-all {
    background: linear-gradient(45deg, #2196f3, #9c27b0);
    color: white;
}

.btn-consent-reject {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-consent-save {
    background: rgba(76, 175, 80, 0.8);
    color: white;
}

.btn-consent-accept-all:hover,
.btn-consent-reject:hover,
.btn-consent-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Toast Notifications */
.toast-soonplay {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    max-width: 350px;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1002;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.toast-soonplay[aria-hidden="false"] {
    opacity: 1;
    transform: translateY(0);
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

.toast-closelet {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.toast-closelet:hover, .toast-closelet:focus {
    opacity: 1;
    outline: none;
}

/* Footer */
.footer-main {
    background: rgba(15, 15, 35, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3, .footer-section h4 {
    color: #90caf9;
    margin-bottom: 1rem;
}

.footer-section h3 {
    font-size: 1.5rem;
}

.footer-section h4 {
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #b0bec5;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-links a:focus {
    color: #90caf9;
}

.footer-links a[aria-current="page"] {
    color: #90caf9;
    font-weight: 600;
}

.btn-cookie-settings {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-cookie-settings:hover, .btn-cookie-settings:focus {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    text-align: center;
    color: #78909c;
    font-size: 0.9rem;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.legal-content h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #90caf9;
}

.legal-content h2 {
    color: #90caf9;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(144, 202, 249, 0.3);
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    color: #b0bec5;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content ul {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content em {
    color: #78909c;
}

/* Cookie Table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    overflow: hidden;
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: #90caf9;
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.cookie-controls {
    margin: 2rem 0;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, #2196f3, #9c27b0);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.btn-primary:hover, .btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
    outline: none;
}

/* Contact Page */
.contact-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item h3 {
    color: #90caf9;
    margin-bottom: 0.75rem;
}

.contact-note {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 0.5rem;
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
}

.form-contact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #b0bec5;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #78909c;
}

.error-message {
    color: #f44336;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #f44336;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

.form-privacy {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 1rem;
}

.btn-submit {
    background: linear-gradient(45deg, #2196f3, #9c27b0);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.btn-submit:hover, .btn-submit:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
    outline: none;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
}

.success-message h3 {
    color: #4caf50;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-primary {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .deck-game-trio {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-section,
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .age-gate-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }

    .age-gate-content p {
        min-width: auto;
    }

    .drawer-consent {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }

    .toast-soonplay {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

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

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

    .stratum-mainflow {
        padding: 1.5rem 0;
    }

    .about-section,
    .contact-info,
    .contact-form {
        padding: 1rem;
    }

    .tile-gamelet {
        padding: 1.5rem;
    }

    .box-pastel {
        padding: 1.5rem;
    }

    .rail-rg-ethos-no ul {
        padding-left: 1.5rem;
    }
}

/* Focus Management and Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #90caf9;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    body {
        background: #000;
        color: #fff;
    }

    .tile-gamelet,
    .about-section,
    .contact-info,
    .contact-form {
        border: 2px solid #fff;
    }

    .box-pastel {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    .header-main,
    .bar-age-18fi,
    .drawer-consent,
    .toast-soonplay,
    .btn-cookie-settings {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: blue;
    }

    .box-pastel {
        background: #f5f5f5;
        color: black;
        border: 1px solid #ccc;
    }
}