/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #f5f7fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
    position: relative;
}

/* Screens */
.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    min-height: 500px;
}

.screen.active {
    display: flex;
}

/* Main Menu Styles */
#main-menu {
    text-align: center;
    justify-content: center;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    transform-origin: center;
    transition: transform 0.3s ease-out;
}

#main-menu h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.menu-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 90%;
    max-width: 400px;
    margin: 1rem auto 0;
}

.menu-btn {
    padding: 0.8rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.menu-btn:hover {
    background: linear-gradient(45deg, #2980b9, #3498db);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.menu-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.league-progress {
    margin: 1.5rem auto;
    text-align: center;
    width: 90%;
    max-width: 500px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.league-info {
    font-size: 1.2rem;
    font-weight: bold;
    color: #34495e;
}

.progress-bar {
    height: 16px;
    background-color: #eee;
    border-radius: 8px;
    width: 100%;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #3498db, #2980b9);
    transition: width 0.3s ease;
}

.next-league {
    font-size: 1rem;
    color: #7f8c8d;
}

#online-mode-btn {
    width: 100%;
    margin-top: 0.5rem;
}

.coins-display {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 30px;
    margin: 1rem auto;
    font-size: 1.2rem;
    font-weight: bold;
    color: #34495e;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    max-width: 200px;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.header h2 {
    font-size: 1.8rem;
    color: #2c3e50;
}

.back-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    background-color: #e74c3c;
    color: white;
    cursor: pointer;
}

.back-btn:hover {
    background-color: #c0392b;
}

/* Game Board Styles */
.game-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 1rem auto;
    width: 100%;
    max-width: 800px;
    height: auto;
    max-height: calc(100vh - 220px);
    min-height: 200px;
}

.card {
    aspect-ratio: 1/1;
    background-color: #3498db;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    min-width: 40px;
    min-height: 40px;
}

.card.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-front {
    background-color: #3498db;
    transform: rotateY(0deg);
}

.card-back {
    background-color: #e8e8e8; 
    transform: rotateY(180deg);
    padding: 8px;
    background-image: 
        linear-gradient(45deg, #d0d0d0 25%, transparent 25%, transparent 75%, #d0d0d0 75%, #d0d0d0),
        linear-gradient(-45deg, #d0d0d0 25%, transparent 25%, transparent 75%, #d0d0d0 75%, #d0d0d0);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
}

.card-back svg {
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border: 3px solid #333;
    border-radius: 5px;
    background-color: white;
}

.card.hint {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Online Mode Styles */
.online-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
}

.player-info, .opponent-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 10px;
    border-radius: 8px;
    width: 48%;
    transition: background-color 0.3s ease;
}

.player-active {
    background-color: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
}

.opponent-active {
    background-color: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
}

.timer-container {
    position: relative;
    width: 100%;
    height: 25px;
    background-color: #f1f1f1;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 5px;
}

#player-timer-bar, #opponent-timer-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #3498db;
    transition: width 0.1s linear;
}

#player-timer-text, #opponent-timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
}

.turn-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 0.5rem 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.modal-content h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.modal-content button {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: white;
    cursor: pointer;
    margin-right: 0.5rem;
}

.modal-content button:hover {
    background-color: #2980b9;
}

/* Spinner for matchmaking */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Level info styles */
.level-info {
    display: flex;
    gap: 1rem;
}

.lives, .matches {
    font-size: 1.1rem;
}

/* Powerup Styles */
.powerups-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.powerup-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1f1f1;
    border: 2px solid #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.powerup-btn:hover {
    background-color: #e0e0e0;
}

.powerup-count {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.powerup-icon {
    width: 24px;
    height: 24px;
}

/* Shop Styles */
.shop-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    max-width: 1200px;
    width: 100%;
    padding: 0 1rem;
    overflow-y: auto;
}

.shop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
    max-width: 100%;
    margin: 0 auto;
}

.shop-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.shop-item-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.shop-item-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.coin-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
}

.buy-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    cursor: pointer;
}

.buy-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.watch-ad-btn {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Level Selection Styles */
.level-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    width: 100%;
    max-width: 600px;
}

.level-btn {
    aspect-ratio: 1/1;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.level-btn:hover:not(:disabled) {
    transform: scale(1.05);
    background-color: #2980b9;
}

.level-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.level-btn.completed {
    background-color: #2ecc71;
}

.level-btn.current {
    border: 3px solid #f39c12;
}

/* Ad Overlay Styles */
.ad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Hide modals during ad */
.modal.temp-hidden {
    display: none !important;
}

.modal.ad-running {
    opacity: 0;
    pointer-events: none;
}

.ad-message {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.ad-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* Events Styles */
.events-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 800px;
    margin: 1rem 0;
    overflow-y: auto;
    max-height: 60vh;
}

.event-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    position: relative;
    overflow: hidden;
}

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

.event-banner:hover::before {
    left: 100%;
}

.event-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.event-banner.daily_challenge {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.event-banner.weekly_cup {
    background: linear-gradient(45deg, #f39c12, #e67e22);
}

.event-banner.weekly_league {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

.event-banner.weekly_streak {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
}

.event-banner.weekly_endurance {
    background: linear-gradient(45deg, #34495e, #2c3e50);
}

.event-content {
    flex: 1;
}

.event-title {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: bold;
}

.event-subtitle {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    opacity: 0.9;
}

.event-info {
    font-size: 0.9rem;
    opacity: 0.8;
}

.event-rewards {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.rewards-title {
    font-size: 0.9rem;
    font-weight: bold;
}

.rewards-icons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.reward-icon {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.reward-icon svg, .coin-reward-icon {
    width: 20px;
    height: 20px;
}

.event-modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.event-progress-section {
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.tiers-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tier-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    border-radius: 5px;
    background-color: #e9ecef;
    border: 2px solid transparent;
}

.tier-item.current {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.tier-item.completed {
    background-color: #cce5ff;
    border-color: #99d6ff;
}

.tier-item.unavailable {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    opacity: 0.6;
}

.tier-rewards {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.event-detail-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.event-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.event-btn:hover {
    background-color: #218838;
}

.event-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.event-completed {
    color: #28a745;
    font-weight: bold;
    margin-top: 0.5rem;
}

.event-progress-display {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.event-progress-display h3 {
    margin-top: 0;
    color: #3498db;
}

/* Scrollbar Styles */
.events-container::-webkit-scrollbar,
.event-modal-content::-webkit-scrollbar,
.shop-container::-webkit-scrollbar,
.rewards-container::-webkit-scrollbar {
    width: 8px;
}

.events-container::-webkit-scrollbar-track,
.event-modal-content::-webkit-scrollbar-track,
.shop-container::-webkit-scrollbar-track,
.rewards-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.events-container::-webkit-scrollbar-thumb,
.event-modal-content::-webkit-scrollbar-thumb,
.shop-container::-webkit-scrollbar-thumb,
.rewards-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.events-container::-webkit-scrollbar-thumb:hover,
.event-modal-content::-webkit-scrollbar-thumb:hover,
.shop-container::-webkit-scrollbar-thumb:hover,
.rewards-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .game-board {
        grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
        max-height: calc(100vh - 250px);
        min-height: 180px;
    }

    .header {
        flex-direction: column;
        gap: 1rem;
    }

    .online-info {
        flex-direction: column;
        gap: 1rem;
    }

    .player-info, .opponent-info {
        width: 100%;
    }

    .timer-container {
        margin: 0.5rem 0;
    }

    .powerups-bar {
        flex-wrap: wrap;
    }

    .wheel-modal-content {
        padding: 1rem;
    }

    .wheel-container {
        width: 250px;
        height: 250px;
    }

    .segment-label {
        font-size: 10px;
        width: 80px;
        left: 20px;
        top: 20px;
    }

    .menu-btn {
        padding: 1rem;
        font-size: 1.1rem;
    }

    #main-menu h1 {
        font-size: 2.5rem;
    }

    .playtime-rewards-btn {
        position: fixed;
        right: 0;
        top: 50%;
        z-index: 10;
    }

    #main-menu {
        padding: 15px;
    }

    .wheel-segment {
        min-width: 100px;
    }
}

.playtime-rewards-btn {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 0 10px 10px 0;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.rewards-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 3px;
}

.rewards-notification {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    background-color: #e74c3c;
    border-radius: 50%;
    border: 2px solid white;
    display: none;
}

.rewards-notification.active {
    display: block;
}

/* Trophy icon styling */
.trophy-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin: 0 4px;
}

/* Powerup Promo Styles */
.powerup-promo {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.promo-powerup-container {
    margin: 1rem 0;
}

.promo-powerup {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.promo-powerup-icon {
    width: 50px;
    height: 50px;
    background-color: #f1f1f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.promo-powerup-info {
    text-align: left;
    flex: 1;
}

.promo-powerup-info h3 {
    margin-bottom: 0.5rem;
}

/* Rewards Styles */
.rewards-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
    margin: 1rem 0;
    overflow-y: auto;
}

.reward-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
}

.reward-item.ready {
    background-color: #d4edda;
    border-color: #c3e6cb;
    cursor: pointer;
}

.reward-item.ready:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.reward-item.claimed {
    background-color: #e2e3e5;
    border-color: #d6d8db;
    opacity: 0.8;
}

.reward-item.locked {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    opacity: 0.5;
}

.reward-day {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #495057;
}

.reward-contents {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
}

/* Ad Blocker Warning */
.adblocker-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.adblocker-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.adblocker-content h2 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.adblocker-content p {
    margin-bottom: 1rem;
}

.adblocker-content ul {
    text-align: left;
    margin: 1rem 0;
    padding-left: 2rem;
}

.adblocker-content button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
}

.adblocker-content button:hover {
    background-color: #2980b9;
}

/* Player Level Display */
.player-level-display {
    margin: 1rem auto;
    text-align: center;
    width: 90%;
    max-width: 300px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.level-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.level-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #34495e;
}

.xp-bar {
    height: 12px;
    background-color: #ecf0f1;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.xp-fill {
    height: 100%;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    transition: width 0.5s ease;
}

.xp-text {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Daily Rewards Button */
.daily-rewards-btn {
    position: absolute;
    right: -60px;
    bottom: 20%;
    transform: translateY(50%);
    width: 60px;
    height: 60px;
    border-radius: 0 10px 10px 0;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.daily-icon {
    width: 40px;
    height: 40px;
}

.daily-notification {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    background-color: #f39c12;
    border-radius: 50%;
    border: 2px solid white;
    display: none;
    animation: pulse-notification 2s infinite;
}

.daily-notification.active {
    display: block;
}

@keyframes pulse-notification {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Daily Rewards Modal */
.daily-rewards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
}

.daily-reward-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #f093fb 0%, #f5576c 100%) border-box;
    position: relative;
    overflow: hidden;
}

.daily-reward-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.daily-reward-item.available {
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #4facfe 0%, #00f2fe 100%) border-box;
    cursor: pointer;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.daily-reward-item.available::before {
    animation: shimmer 2s infinite;
}

.daily-reward-item.available:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.daily-reward-item.available:hover::before {
    left: 100%;
}

.daily-reward-item.claimed {
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #a8edea 0%, #fed6e3 100%) border-box;
    opacity: 0.8;
}

.daily-reward-item.locked {
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #ffecd2 0%, #fcb69f 100%) border-box;
    opacity: 0.6;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.reward-day {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.reward-contents {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    min-height: 60px;
    justify-content: center;
}

.reward-contents .coin-icon {
    width: 30px;
    height: 30px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

/* Special Offers in Shop */
.special-offers-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.special-offers-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
    max-height: 40vh;
    overflow-y: auto;
}

.shop-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.offer-expiry {
    font-size: 0.8rem;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.no-offers {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* Event Status Indicators */
.event-status-completed {
    color: #27ae60;
    font-weight: bold;
    font-size: 0.9rem;
}

.event-status-failed {
    color: #e74c3c;
    font-weight: bold;
    font-size: 0.9rem;
}

.event-status-progress {
    color: #f39c12;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Event Detail Progress Sections */
.rewards-preview, .milestones-list {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f1f2f6;
    border-radius: 8px;
}

.reward-tier, .milestone-item {
    padding: 0.5rem;
    margin: 0.3rem 0;
    background-color: white;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.milestone-item.completed {
    border-left-color: #27ae60;
    background-color: #d4edda;
}

/* Coin Icon Styling */
.coin-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.2));
}

/* ...existing styles... */