/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #2c1810;
    background-image: 
        linear-gradient(135deg, rgba(44, 24, 16, 0.6) 0%, rgba(74, 44, 26, 0.6) 50%, rgba(44, 24, 16, 0.6) 100%),
        url('./images/schedule-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Alternative background approach */
html {
    background: 
        linear-gradient(135deg, rgba(44, 24, 16, 0.7) 0%, rgba(74, 44, 26, 0.7) 50%, rgba(44, 24, 16, 0.7) 100%),
        url('./images/schedule-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Banner Slider */
.banner-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 0;
    background: #2c1810;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.prev-btn, .next-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    pointer-events: all;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ffd700;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Game Categories */
.game-categories {
    background: #f5f5f5;
    padding: 40px 0;
    margin: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 120px;
    justify-content: center;
}

.category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.category-icon i {
    font-size: 2.5rem;
    color: #2c1810;
}

.category-item span {
    color: #2c1810;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.2;
}

/* Main Content */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 0;
    margin: 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: start;
}

/* Use margin instead of gap for better browser support */
.left-column {
    margin-right: 40px;
}

/* Left Column - QR Section */
.left-column {
    display: flex;
    justify-content: center;
}

.qr-section {
    background: #2c1810;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.qr-section h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.qr-code {
    margin: 20px 0;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.qr-placeholder i {
    font-size: 3rem;
    color: #0088cc;
    margin-bottom: 10px;
}

.qr-placeholder p {
    color: #2c1810;
    font-weight: bold;
    font-size: 1.1rem;
}

.qr-image-container {
    width: 130px;
    height: 130px;
    margin: 0 auto 10px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.qr-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.qr-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 16px;
}

.qr-pattern {
    width: 100px;
    height: 100px;
    position: relative;
    background: #000;
    border-radius: 8px;
}

.qr-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #000;
    border: 2px solid #000;
}

.qr-corner::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 2px;
}

.qr-corner::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 4px;
    height: 4px;
    background: #000;
    border-radius: 1px;
}

.qr-corner.top-left {
    top: 5px;
    left: 5px;
}

.qr-corner.top-right {
    top: 5px;
    right: 5px;
}

.qr-corner.bottom-left {
    bottom: 5px;
    left: 5px;
}

.qr-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}

.qr-dot {
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 1px;
}

.telegram-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    margin-top: 15px;
}

.telegram-info i {
    color: #0088cc;
    font-size: 1.2rem;
}

/* Right Column - Links */
.right-column {
    display: flex;
    flex-direction: column;
}

/* Use margin instead of gap for better browser support */
.link-box:not(:last-child) {
    margin-bottom: 20px;
}

.link-box {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.link-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.box-header {
    background: linear-gradient(135deg, #2c1810 0%, #4a2c1a 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.1rem;
}

.box-header i {
    color: #ffd700;
    font-size: 1.2rem;
}

.box-content {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.link-column h4 {
    color: #2c1810;
    margin-bottom: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
}

.link-item {
    margin-bottom: 10px;
}

.link-btn {
    display: block;
    background: #2c1810;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.link-btn:hover {
    background: #4a2c1a;
    border-color: #ffd700;
    transform: translateY(-1px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c1810 0%, #4a2c1a 50%, #2c1810 100%);
    padding: 40px 0 20px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-left p {
    margin-bottom: 10px;
    color: #ccc;
    font-size: 0.9rem;
}

.footer-right p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.app-buttons {
    display: flex;
    gap: 15px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: bold;
}

.app-btn.google-play {
    background: #ff6b35;
    color: white;
}

.app-btn.app-store {
    background: #007AFF;
    color: white;
}

.app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #ffd700;
    color: #2c1810;
    transform: translateY(-2px);
}

/* Get Code Section */
.get-code-section {
    background: linear-gradient(135deg, #2c1810 0%, #4a2c1a 50%, #2c1810 100%);
    padding: 50px 0;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
}

.get-code-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 500px;
    margin: 0 auto;
}

.get-code-container h2 {
    color: #ffd700;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.get-code-container > p {
    color: #ccc;
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.get-code-state {
    transition: all 0.3s ease;
}

.get-code-state.hidden {
    display: none;
}

.get-code-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    margin: 10px 5px;
}

.get-code-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.get-code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.get-code-btn.secondary {
    background: linear-gradient(135deg, #666 0%, #888 100%);
    box-shadow: 0 4px 15px rgba(100, 100, 100, 0.3);
}

.get-code-btn.secondary:hover {
    box-shadow: 0 6px 20px rgba(100, 100, 100, 0.5);
}

.get-code-countdown {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.countdown-circle-small {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #ffd700 0deg,
        #ffd700 var(--progress, 0deg),
        rgba(255, 255, 255, 0.1) var(--progress, 0deg),
        rgba(255, 255, 255, 0.1) 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: background 0.1s linear;
}

.countdown-text-small {
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.get-code-display {
    background: rgba(255, 215, 0, 0.15);
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 20px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffd700;
    letter-spacing: 5px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.get-code-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.get-code-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    animation: slideIn 0.3s ease;
}

.get-code-status.hidden {
    display: none;
}

.get-code-status.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #a5d6a7;
}

.get-code-status.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #ef9a9a;
}

.get-code-status.info {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid #2196f3;
    color: #90caf9;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
/* Large screens */
@media (min-width: 1400px) {
    .banner-slider {
        height: 600px;
    }
}

@media (min-width: 1920px) {
    .banner-slider {
        height: 700px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .container {
        padding: 0 15px;
    }

    .banner-slider {
        height: 180px;
    }

    .slide img {
        object-fit: contain;
        object-position: center center;
    }

    .prev-btn, .next-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-controls {
        padding: 0 15px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .left-column {
        margin-right: 0;
        margin-bottom: 30px;
    }

    .box-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .app-buttons {
        justify-content: center;
    }

    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .category-item {
        padding: 15px 5px;
        min-height: 100px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
    }

    .category-icon i {
        font-size: 2rem;
    }

    .category-item span {
        font-size: 0.8rem;
    }

    .get-code-container {
        padding: 30px 20px;
    }

    .get-code-container h2 {
        font-size: 1.5rem;
    }

    .get-code-display {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .get-code-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .countdown-circle-small {
        width: 100px;
        height: 100px;
    }

    .countdown-text-small {
        font-size: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .banner-slider {
        height: 150px;
    }

    .slide img {
        object-fit: contain;
        object-position: center center;
    }

    .prev-btn, .next-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .slider-controls {
        padding: 0 10px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-item {
        min-height: 90px;
    }

    .category-icon {
        width: 40px;
        height: 40px;
    }

    .category-icon i {
        font-size: 1.5rem;
    }

    .qr-placeholder {
        width: 150px;
        height: 150px;
    }

    .qr-placeholder i {
        font-size: 2rem;
    }

    .get-code-section {
        padding: 30px 0;
    }

    .get-code-container {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .get-code-container h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .get-code-container > p {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .get-code-display {
        font-size: 1.5rem;
        letter-spacing: 2px;
        padding: 15px;
    }

    .get-code-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
        margin: 8px 3px;
    }

    .get-code-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .get-code-buttons .get-code-btn {
        width: 100%;
        margin: 5px 0;
    }

    .countdown-circle-small {
        width: 80px;
        height: 80px;
    }

    .countdown-text-small {
        font-size: 1.2rem;
    }
}

/* Get Code Footer Button */
.get-code-button-container {
    text-align: center;
    padding: 30px 0 0 0;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.get-code-footer-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.get-code-footer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.6);
}

.get-code-footer-btn:active {
    transform: translateY(-1px);
}

/* Get Code Modal */
.get-code-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.get-code-modal.hidden {
    display: none;
}

.get-code-modal-content {
    background: linear-gradient(135deg, #2c1810 0%, #4a2c1a 50%, #2c1810 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.get-code-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffd700;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.get-code-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.get-code-modal-content h2 {
    color: #ffd700;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.get-code-modal-content p {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

.get-code-modal-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    width: 100%;
    margin: 10px 0;
}

.get-code-modal-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.get-code-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.get-code-modal-btn.secondary {
    background: linear-gradient(135deg, #666 0%, #888 100%);
    box-shadow: 0 4px 15px rgba(100, 100, 100, 0.3);
}

.get-code-modal-btn.secondary:hover {
    box-shadow: 0 6px 20px rgba(100, 100, 100, 0.5);
}

.get-code-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
    .get-code-button-container {
        padding: 20px 0 0 0;
    }

    .get-code-footer-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .get-code-modal-content {
        padding: 30px 20px;
        width: 95%;
    }

    .get-code-modal-content h2 {
        font-size: 1.5rem;
    }

    .get-code-modal-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}