/* 
 * Jeton Casino Schweiz - Stylesheet
 * Size: ~15.7 KB (unminified)
 * Recommended: Minify and gzip for production (should be ~5-7 KB gzipped)
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    font-display: swap;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(200, 220, 255, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 50%, #c3cfe2 100%);
    background-attachment: fixed;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: static;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.main-content {
    position: relative;
    z-index: 1;
}

/* Mobile First - Base mobile styles */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.logo a {
    display: inline-block;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.nav {
    display: none;
    gap: 30px;
    flex-wrap: wrap;
}

/* 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: #2c3e50;
    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-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link:hover::after {
    width: 100%;
}

/* Main Content Styles */
.main-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    margin: 15px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 1200px;
    position: relative;
    z-index: 0;
}

/* Hero Section */
.hero {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.hero-title {
    font-size: 1.5em;
    color: #1a202c;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-intro-wrapper {
    position: relative;
}

.hero-intro {
    font-size: 1.2em;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 0;
}

.hero-intro-full {
    display: none;
}

.hero-toggle-btn {
    display: none;
    margin-top: 15px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.hero-toggle-btn:hover {
    background: #667eea;
    color: white;
}

.hero-toggle-btn .toggle-text-less {
    display: none;
}

.hero-toggle-btn[aria-expanded="true"] .toggle-text-more {
    display: none;
}

.hero-toggle-btn[aria-expanded="true"] .toggle-text-less {
    display: inline;
}

.author-date {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.author-date-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-date-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #667eea;
}

.author-date-info {
    flex: 1;
}

.author-date-name {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 3px;
    font-size: 1em;
}

.author-date-role {
    color: #667eea;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.author-date-text {
    color: #718096;
    font-size: 0.85em;
}

/* Section Styles */
.section {
    margin-bottom: 50px;
    padding-bottom: 30px;
}

.section:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.5em;
    color: #1a202c;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

.section-intro {
    font-size: 1.1em;
    color: #4a5568;
    margin-bottom: 25px;
    line-height: 1.8;
}

.section-note {
    margin-top: 20px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.1);
    border-left: 4px solid #667eea;
    border-radius: 5px;
    font-style: italic;
}

/* Casino Table Styles */
.casino-table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    -webkit-overflow-scrolling: touch;
}

.casino-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 800px;
}

/* Mobile Hero Toggle */
@media (max-width: 768px) {
    .hero-intro-short {
        display: block;
    }
    
    .hero-intro-full {
        display: none;
    }
    
    .hero-toggle-btn {
        display: inline-block;
    }
    
    .hero-intro-wrapper[data-expanded="true"] .hero-intro-short {
        display: none;
    }
    
    .hero-intro-wrapper[data-expanded="true"] .hero-intro-full {
        display: block;
        margin-top: 15px;
    }
}

@media (min-width: 769px) {
    .hero-intro-short {
        display: none;
    }
    
    .hero-intro-full {
        display: block;
    }
    
    .hero-toggle-btn {
        display: none;
    }
}

/* Mobile Cards View */
@media (max-width: 768px) {
    .burger-menu-toggle {
        display: flex;
    }
    
    .header {
        position: relative;
        z-index: 1002;
    }
    
    .header-content {
        position: relative;
        z-index: 1003;
    }
    
    .burger-menu-toggle {
        position: relative;
        z-index: 1004;
        background: white;
        border-radius: 4px;
        padding: 5px;
    }
    
    .mobile-nav-overlay {
        z-index: 1000;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }
    
    .nav.active {
        right: 0;
        display: flex;
    }
    
    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid #e2e8f0;
        width: 100%;
        font-size: 18px;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .casino-table-wrapper {
        overflow-x: visible;
        margin: 20px 0;
    }
    
    .casino-table {
        min-width: 100%;
        display: block;
    }
    
    .casino-table thead {
        display: none;
    }
    
    .casino-table tbody {
        display: block;
    }
    
    .casino-table tbody tr {
        display: block;
        margin-bottom: 20px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 20px;
        border: none;
    }
    
    .casino-table tbody tr:hover {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }
    
    .casino-table td {
        display: block;
        padding: 12px 0;
        border: none;
        text-align: left;
    }
    
    .casino-table td:first-child {
        padding-bottom: 15px;
        border-bottom: 2px solid #e2e8f0;
        margin-bottom: 15px;
    }
    
    .casino-table td:not(:first-child):not(:last-child) {
        margin-bottom: 12px;
    }
    
    .casino-table td:not(:first-child):not(:last-child)::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #667eea;
        font-size: 0.9em;
        display: block;
        margin-bottom: 5px;
    }
    
    .casino-name {
        justify-content: flex-start;
    }
    
    .casino-logo {
        width: 50px;
        height: 50px;
    }
    
    .casino-table td:last-child {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 2px solid #e2e8f0;
    }
    
    .top-card__btn.referral-btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
}

.casino-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.casino-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.casino-table th svg {
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.casino-table th .th-text {
    display: none;
}

@media (min-width: 1024px) {
    .casino-table th .th-text {
        display: inline;
    }
}

.casino-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.3s ease;
}

.casino-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.casino-table td {
    padding: 10px 8px;
    vertical-align: middle;
}

.casino-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #1a202c;
}

.casino-table td:first-child {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
}

.casino-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.btn-casino,
.top-card__btn.referral-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.btn-casino:hover,
.top-card__btn.referral-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-casino:active,
.top-card__btn.referral-btn:active {
    transform: translateY(0);
}

/* Advantage and Tip Items */
.advantage-item,
.tip-item {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.advantage-item h3,
.tip-item h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.advantage-item p,
.tip-item p {
    color: #4a5568;
    line-height: 1.8;
}

/* FAQ Styles */
.faq-item {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: #1a202c;
    margin-bottom: 12px;
    font-size: 1.2em;
    color: #667eea;
}

.faq-item p {
    color: #4a5568;
    line-height: 1.8;
}

/* Conclusion */
.conclusion {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    font-size: 1.1em;
    line-height: 1.8;
    color: #2c3e50;
}

/* Footer Styles */
.footer {
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
    color: #e2e8f0;
    padding: 50px 0 20px;
    margin-top: 50px;
    border-top: 3px solid #667eea;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    display: inline-block;
}

.footer-text {
    line-height: 1.8;
    color: #cbd5e0;
    margin-bottom: 25px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 20px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #667eea;
}

.author-details {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.author-role {
    color: #cbd5e0;
    font-size: 0.9em;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #667eea;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    font-size: 0.9em;
}

/* Mobile First - Base styles are for mobile */
/* Responsive Design - Desktop styles */
@media (min-width: 481px) {
    .hero-title {
        font-size: 1.8em;
    }

    .casino-table {
        font-size: 0.9em;
    }

    .btn-casino,
    .top-card__btn.referral-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (min-width: 769px) {
    .header-content {
        flex-direction: row;
        gap: 30px;
    }
    
    .burger-menu-toggle {
        display: none;
    }

    .nav {
        display: flex;
        justify-content: flex-end;
        gap: 30px;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        right: auto;
        flex-direction: row;
    }
    
    .mobile-nav-overlay {
        display: none !important;
    }

    .main-content {
        padding: 40px;
        margin: 30px auto;
    }

    .hero-title {
        font-size: 2.5em;
    }

    .section-title {
        font-size: 2em;
    }

    .casino-table {
        font-size: 1em;
        display: table;
    }
    
    .casino-table thead {
        display: table-header-group;
    }
    
    .casino-table tbody {
        display: table-row-group;
    }
    
    .casino-table tr {
        display: table-row;
    }
    
    .casino-table td {
        display: table-cell;
    }

    .casino-table th,
    .casino-table td {
        padding: 15px;
    }

    .casino-logo {
        width: 60px;
        height: 60px;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr;
        gap: 40px;
    }
}

/* Smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* 404 Error Page Styles */
.error-page {
    text-align: center;
    padding: 60px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.error-code {
    font-size: 8em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.error-title {
    font-size: 2.5em;
    color: #1a202c;
    margin-bottom: 20px;
    font-weight: 600;
}

.error-description {
    font-size: 1.2em;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn-secondary {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.error-help {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.error-help-title {
    font-size: 1.8em;
    color: #1a202c;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
    display: inline-block;
    width: 100%;
}

.error-help-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-help-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #4a5568;
    font-size: 1.1em;
    line-height: 1.6;
}

.error-help-list li:last-child {
    border-bottom: none;
}

.error-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.9em;
}

.error-help-list a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.error-help-list a:hover {
    color: #764ba2;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .error-code {
        font-size: 5em;
    }

    .error-title {
        font-size: 1.8em;
    }

    .error-description {
        font-size: 1em;
    }

    .error-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .error-actions .btn-casino {
        width: 100%;
        text-align: center;
    }

    .error-help {
        padding: 25px 20px;
    }

    .error-help-title {
        font-size: 1.5em;
    }

    .error-help-list li {
        font-size: 1em;
    }
}

