/**
 * Revenue System Styles
 * Professional styling for monetization features
 */

/* Floating Buttons Container */
.floating-buttons-container {
    position: fixed;
    z-index: 100;
    pointer-events: none;
}

.floating-button {
    position: fixed;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.floating-button:hover {
    transform: scale(1.1);
}

.floating-button.top-left {
    top: 120px;
    left: 20px;
}

.floating-button.top-right {
    top: 120px;
    right: 20px;
}

.floating-button.bottom-left {
    bottom: 120px;
    left: 20px;
}

.floating-button.bottom-right {
    bottom: 120px;
    right: 20px;
}

.button-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.button-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.button-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Revenue Modal */
.revenue-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.revenue-modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

/* Ad Menu Styles */
.ad-menu h3 {
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.ad-options {
    display: grid;
    gap: 15px;
}

.ad-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.ad-option:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.ad-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ad-reward {
    font-size: 18px;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 8px;
}

.ad-limit {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.ad-watch-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ad-watch-btn:hover:not(.disabled) {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

.ad-watch-btn.disabled {
    background: #4b5563;
    cursor: not-allowed;
}

/* NFT Menu Styles */
.nft-menu {
    color: white;
}

.nft-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nft-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nft-tab.active {
    color: #fff;
}

.nft-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.nft-rarity-section {
    margin-bottom: 30px;
}

.nft-rarity-title {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nft-rarity-title.basic { color: #60a5fa; }
.nft-rarity-title.rare { color: #a78bfa; }
.nft-rarity-title.legendary { color: #fbbf24; }
.nft-rarity-title.unique { color: #f87171; }

.nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.nft-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

.nft-card.basic { border-color: #60a5fa33; }
.nft-card.rare { border-color: #a78bfa33; }
.nft-card.legendary { 
    border-color: #fbbf2433;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.05));
}

.nft-card.owned {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

.nft-card.equipped {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.nft-preview {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
}

.nft-gems-preview {
    display: flex;
    gap: 10px;
}

.preview-gem {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.nft-effect-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.nft-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 5px 0;
}

.nft-description {
    font-size: 12px;
    color: #9ca3af;
    margin: 0 0 5px 0;
}

.nft-bonus {
    font-size: 12px;
    color: #22c55e;
    font-weight: 600;
    margin: 0;
}

.nft-btn {
    width: 100%;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.nft-btn.buy {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
}

.nft-btn.equip {
    background: #22c55e;
    color: white;
}

.nft-btn.equipped {
    background: #6b7280;
    color: white;
    cursor: default;
}

/* Shop Styles */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.theme-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.theme-preview {
    height: 80px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.theme-dark-preview { background: linear-gradient(135deg, #000, #1a1a1a); }
.theme-cyberpunk-preview { background: linear-gradient(135deg, #ff00ff, #00ffff); }
.theme-wooden-preview { background: linear-gradient(135deg, #8b4513, #d2691e); }
.theme-ice-preview { background: linear-gradient(135deg, #00bfff, #ffffff); }

/* Bundle Styles */
.bundles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.bundle-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.bundle-card.bestseller {
    border-color: #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.05));
}

.bundle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.bestseller-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #fbbf24;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.limited-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #ef4444;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.bundle-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.bundle-price {
    font-size: 28px;
    font-weight: 700;
    color: #22c55e;
}

.bundle-original {
    font-size: 18px;
    color: #6b7280;
    text-decoration: line-through;
}

.bundle-discount {
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

/* Boost Display */
.boost-display {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 200;
    box-shadow: 0 5px 20px rgba(251, 191, 36, 0.5);
    animation: pulse 2s infinite;
}

.boost-display.hidden {
    display: none;
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

.boost-icon {
    font-size: 24px;
}

.boost-multiplier {
    font-size: 18px;
    font-weight: 700;
}

.boost-timer {
    font-size: 16px;
    font-weight: 600;
}

/* Ad Overlay */
.ad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-container {
    background: #1e1e2e;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    padding: 20px;
}

.ad-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: white;
}

.ad-timer {
    font-size: 20px;
    font-weight: 700;
    color: #fbbf24;
}

.ad-video-placeholder {
    height: 300px;
    background: #000;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.ad-progress-bar {
    width: 80%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-top: 20px;
    overflow: hidden;
}

.ad-progress-fill {
    height: 100%;
    background: #22c55e;
    width: 0;
    transition: width 1s linear;
}

.ad-skip-btn {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.ad-skip-btn:not(:disabled) {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

/* Banner Ad */
.banner-ad-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px;
    text-align: center;
    z-index: 50;
}

.ad-label {
    font-size: 10px;
    color: #6b7280;
    margin-bottom: 5px;
}

/* Revenue Notifications */
.revenue-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1e1e2e;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.revenue-notification.success {
    border-left: 4px solid #22c55e;
}

.revenue-notification.error {
    border-left: 4px solid #ef4444;
}

.revenue-notification.info {
    border-left: 4px solid #3b82f6;
}

.revenue-notification.fade-out {
    animation: fadeOut 0.3s ease;
}

@keyframes fadeOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-button {
        transform: scale(0.85);
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .nft-grid,
    .themes-grid,
    .bundles-grid {
        grid-template-columns: 1fr;
    }
    
    .bundle-card {
        margin-top: 20px;
    }
}