/* Neteller Casino Schweiz - Main Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #ffd700;
    --accent-hover: #ffed4e;
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e1e8ed;
    --success-color: #28a745;
    --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 25px rgba(0,0,0,0.15);
}

/* Mobile First - Base styles for mobile devices */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-light);
    font-size: 16px;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.header-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

/* Mobile Top Casinos Button */
.mobile-top-casinos-btn {
    display: none;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    z-index: 1002;
    cursor: pointer;
}

.mobile-top-casinos-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

/* Burger Menu */
.burger-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.burger-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-link {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    color: var(--accent-color);
    padding-left: 1rem;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-light);
}

.logo-img {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffed4e 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
}

.logo-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

/* Article Styles */
article {
    background: var(--bg-white);
}

article > header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--accent-color);
}

article h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

article h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

article h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

article p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Table Styles */
.casinos-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

.casinos-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
}

.casinos-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.casinos-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.casinos-table tbody tr:hover {
    background-color: #f8f9fa;
}

.casinos-table tbody tr:last-child td {
    border-bottom: none;
}

/* Casino Logo */
.casino-logo {
    width: 120px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-light);
}

.casino-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Payment Methods Icons */
.payment-methods {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.payment-icon {
    width: 40px;
    height: 25px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-white);
    padding: 2px;
    box-shadow: var(--shadow-sm);
}

.payment-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Action Button */
.casino-btn,
.top-card__btn,
.referral-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffed4e 100%);
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    font-family: inherit;
}

.casino-btn:hover,
.top-card__btn:hover,
.referral-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.casino-btn:disabled,
.top-card__btn:disabled,
.referral-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Mobile Cards */
.casinos-mobile {
    display: none;
}

.casino-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.casino-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.casino-card-info {
    margin-bottom: 1rem;
}

.casino-card-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.casino-card-info-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.casino-card-info-value {
    color: var(--text-secondary);
    text-align: right;
    flex: 1;
    margin-left: 1rem;
}

.casino-card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Regular Table Styles (for other tables) */
table:not(.casinos-table) {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

table:not(.casinos-table) thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
}

table:not(.casinos-table) th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

table:not(.casinos-table) td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

table:not(.casinos-table) tbody tr:hover {
    background-color: #f8f9fa;
}

table:not(.casinos-table) tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .casinos-table {
        display: none;
    }
    
    .casinos-mobile {
        display: block;
    }
    
    table:not(.casinos-table) {
        font-size: 0.875rem;
    }
    
    table:not(.casinos-table) th,
    table:not(.casinos-table) td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    table:not(.casinos-table) {
        display: block;
        width: 100%;
        overflow-x: visible;
    }
    
    table:not(.casinos-table) thead {
        display: none;
    }
    
    table:not(.casinos-table) tbody {
        display: block;
    }
    
    table:not(.casinos-table) tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1rem;
        background: var(--bg-white);
        box-shadow: var(--shadow-sm);
    }
    
    table:not(.casinos-table) tbody tr td {
        display: block;
        padding: 0.5rem 0;
        border: none;
        text-align: left;
        white-space: normal;
    }
    
    table:not(.casinos-table) tbody tr td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--text-primary);
        display: inline-block;
        min-width: 120px;
    }
    
    table:not(.casinos-table) tbody tr td:first-child {
        font-weight: 600;
        font-size: 1rem;
        color: var(--primary-color);
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--border-color);
    }
    
    table:not(.casinos-table) tbody tr td:first-child:before {
        display: none;
    }
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.8;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Offset for anchor links */
h2[id] {
    scroll-margin-top: 2rem;
}

/* Mobile First - Responsive Design */
/* Base styles are mobile-first, these are for larger screens */
@media (min-width: 769px) {
    .header-container {
        padding: 0 2rem;
    }
    
    .header-nav {
        display: flex;
        width: auto;
        justify-content: flex-end;
        margin-top: 0;
    }
    
    .mobile-top-casinos-btn {
        display: none;
    }
    
    .burger-menu-toggle {
        display: none;
    }
    
    .mobile-nav {
        display: none !important;
    }
    
    .mobile-nav-overlay {
        display: none !important;
    }
    
    .main-container {
        padding: 2rem;
    }
    
    article h1 {
        font-size: 2.5rem;
    }
    
    article h2 {
        font-size: 2rem;
    }
    
    article h3 {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
        position: relative;
    }
    
    .header-nav {
        display: none;
    }
    
    .mobile-top-casinos-btn {
        display: block;
    }
    
    .burger-menu-toggle {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .mobile-nav-overlay {
        display: block;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-subtitle {
        display: none;
    }
    
    .main-container {
        padding: 1rem;
    }
    
    article h1 {
        font-size: 1.75rem;
    }
    
    article h2 {
        font-size: 1.5rem;
    }
    
    article h3 {
        font-size: 1.25rem;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .main-container {
        padding: 0.75rem;
    }
    
    article h1 {
        font-size: 1.5rem;
    }
    
    article h2 {
        font-size: 1.25rem;
    }
    
    article h3 {
        font-size: 1.1rem;
    }
    
    .casino-btn,
    .top-card__btn,
    .referral-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .header-container {
        padding: 0 0.75rem;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .casino-card {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .casino-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .casino-card-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .casino-card-info-value {
        text-align: left;
        margin-left: 0;
    }
    
    .payment-methods {
        justify-content: flex-start;
    }
}

/* 404 Page Styles */
.error-page {
    text-align: center;
    padding: 40px 15px;
}

.error-code {
    font-size: 80px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
    line-height: 1;
}

.error-description {
    font-size: 1rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
}

.error-actions {
    margin: 2rem 0;
}

.error-actions .casino-btn {
    display: inline-block;
    margin: 5px;
}

.error-help {
    margin-top: 2rem;
    text-align: left;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.error-help ul {
    list-style: none;
    padding: 0;
}

.error-help li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.error-help li span {
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.error-help a {
    color: var(--accent-color);
}

@media (min-width: 768px) {
    .error-page {
        padding: 60px 20px;
    }
    
    .error-code {
        font-size: 120px;
        margin-bottom: 20px;
    }
    
    .error-description {
        font-size: 1.2rem;
        margin: 2rem 0;
    }
    
    .error-actions {
        margin: 3rem 0;
    }
    
    .error-actions .casino-btn {
        margin: 0 10px;
    }
    
    .error-help {
        margin-top: 3rem;
        max-width: 600px;
    }
    
    .error-help li {
        margin-bottom: 15px;
    }
}
