/* Reset and Base Styles */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
    /* Глибокий темно-синій градієнт як нічне небо на банері */
    background: linear-gradient(135deg, #0a0b1e 0%, #161b33 50%, #0a0b1e 100%);
    min-height: 100vh;
    color: #b0b8d1;
}

/* Header Styles */
.casino-header {
    background: linear-gradient(135deg, #0f1225 0%, #1a1f3d 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #2a2f4a;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.header-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.auth-button {
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.login-button {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.login-button:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00f2ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.register-button {
    background: linear-gradient(135deg, #8a2be2 0%, #a044ff 100%);
    color: white;
}

.register-button:hover {
    background: linear-gradient(135deg, #9433ff 0%, #b366ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(138, 43, 226, 0.4);
}

/* Banner Section */
.banner-section {
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    background: #1a1f3d;
    border: 1px solid #333a5e;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

/* Content Area */
.content-area {
    padding: 3rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper {
    background: #151931;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid #2a2f4a;
}

.content-wrapper h1 {
    color: #00d4ff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: left;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.content-wrapper h2 {
    color: #a044ff;
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-align: left;
}

.content-wrapper p {
    color: #b0b8d1;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    text-align: left;
}

.content-wrapper ul,
.content-wrapper ol {
    color: #b0b8d1;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    text-align: left;
}

.content-wrapper ul li,
.content-wrapper ol li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.content-wrapper ul li::marker {
    color: #00d4ff;
}

.content-wrapper ol li::marker {
    color: #a044ff;
    font-weight: 700;
}

/* Content Image Styles */
.content-image-wrapper {
    width: 100%;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid #2a2f4a;
}

.content-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%;
}

/* Table Styles */
.bonus-table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bonus-table thead {
    background: linear-gradient(135deg, #1e244d 0%, #2a2f4a 100%);
}

.bonus-table th {
    padding: 1rem;
    text-align: left;
    color: #00d4ff;
    font-weight: 700;
    font-size: 1.05rem;
    border-bottom: 2px solid #333a5e;
}

.bonus-table tbody tr {
    background: #1a1f3d;
    border-bottom: 1px solid #2a2f4a;
    transition: background-color 0.2s ease;
}

.bonus-table tbody tr:hover {
    background: #23294a;
}

.bonus-table tbody tr:last-child {
    border-bottom: none;
}

.bonus-table td {
    padding: 1rem;
    color: #b0b8d1;
    font-size: 1rem;
    text-align: left;
}

/* CTA Section */
.cta-section {
    margin-top: 3rem;
    text-align: center;
}

.cta-button {
    background: linear-gradient(135deg, #8a2be2 0%, #4b0082 100%);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 1.25rem 3rem;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
    cursor: pointer;
    font-family: inherit;
}

.cta-button:hover {
    background: linear-gradient(135deg, #9433ff 0%, #5d00a3 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 28px rgba(138, 43, 226, 0.5);
}

/* Footer Styles */
.casino-footer {
    background: linear-gradient(135deg, #0a0b1e 0%, #05050f 100%);
    color: #b0b8d1;
    padding: 3rem 1.5rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid #2a2f4a;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.responsible-gaming h3 {
    color: #00d4ff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: left;
}

.responsible-gaming p {
    color: #b0b8d1;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: left;
}

.age-restriction {
    color: #ff4d4d;
    font-weight: 700;
    font-size: 1.125rem;
    margin-top: 1.5rem;
}

.footer-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #2a2f4a;
    text-align: left;
}

.footer-links p {
    color: #b0b8d1;
    font-size: 1rem;
}

.footer-links a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #a044ff;
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2a2f4a;
    text-align: center;
}

.footer-bottom p {
    color: #636e94;
    font-size: 0.875rem;
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Bonus Popup */
.bonus-popup {
    position: relative;
    max-width: 500px;
    width: 90%;
    border-radius: 20px;
    padding: 2.5rem;
    background: linear-gradient(135deg, #151931 0%, #1a1f3d 100%);
    border: 3px solid #00d4ff;
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.popup-overlay.active .bonus-popup {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #636e94;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.popup-close:hover {
    color: #00d4ff;
}

.bonus-popup-content {
    text-align: center;
}

.bonus-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.bonus-title {
    color: #00d4ff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.bonus-description {
    color: #b0b8d1;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.bonus-highlight {
    background: linear-gradient(135deg, #00d4ff 0%, #0077ff 100%);
    color: white;
    font-size: 1.75rem;
    font-weight: 900;
    padding: 1.25rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(0, 212, 255, 0.7);
    }
}

.bonus-claim-button {
    background: linear-gradient(135deg, #a044ff 0%, #8a2be2 100%);
    color: white;
    font-size: 1.375rem;
    font-weight: 700;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    border: none;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.4);
    cursor: pointer;
    font-family: inherit;
}

.bonus-claim-button:hover {
    background: linear-gradient(135deg, #b366ff 0%, #9433ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(138, 43, 226, 0.6);
}

.bonus-terms {
    color: #636e94;
    font-size: 0.875rem;
    margin-top: 1rem;
    font-style: italic;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid #2a2f4a;
    justify-content: flex-start;
}

.footer-nav-link {
    color: #b0b8d1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-nav-link:hover {
    color: #00d4ff;
    transform: translateX(3px);
}

.footer-badges {
    margin-top: 1rem;
}

/* Адаптація для мобільних пристроїв */
@media (max-width: 768px) {
    .footer-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        justify-items: start;
    }

    .footer-nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0;
        width: 100%;
        border-bottom: 1px solid #2a2f4a;
    }

    .responsible-gaming h3 {
        text-align: center;
    }

    .responsible-gaming p {
        text-align: center;
        font-size: 0.9rem;
    }

    .footer-badges {
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-nav {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .logo {
        height: 40px;
    }

    .header-buttons {
        width: 100%;
        justify-content: center;
    }

    .auth-button {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
    }

    .banner-section {
        padding: 1.5rem 1rem;
    }

    .banner-image {
        max-height: 250px;
    }

    .content-area {
        padding: 2rem 1rem;
    }

    .content-wrapper {
        padding: 2rem 1.5rem;
    }

    .content-wrapper h1 {
        font-size: 1.875rem;
    }
    .content-wrapper h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .content-wrapper p,
    .content-wrapper ul,
    .content-wrapper ol {
        font-size: 1rem;
    }

    .bonus-table {
        font-size: 0.875rem;
    }

    .bonus-table th,
    .bonus-table td {
        padding: 0.75rem 0.5rem;
    }

    .cta-button {
        font-size: 1.125rem;
        padding: 1rem 2rem;
    }

    .casino-footer {
        padding: 2rem 1rem 1.5rem;
    }

    .responsible-gaming h3 {
        font-size: 1.25rem;
    }

    .bonus-popup {
        padding: 2rem 1.5rem;
    }

    .bonus-title {
        font-size: 1.5rem;
    }

    .bonus-highlight {
        font-size: 1.375rem;
        padding: 1rem;
    }

    .bonus-claim-button {
        font-size: 1.125rem;
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .content-wrapper h1 {
        font-size: 1.5rem;
    }

    .content-wrapper h2 {
        font-size: 1.25rem;
    }

    .bonus-table {
        font-size: 0.8125rem;
    }

    .bonus-table th,
    .bonus-table td {
        padding: 0.625rem 0.375rem;
    }
}
