/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    height: 100vh;
    user-select: none;
}

/* App container */
.app-container {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-header h1 {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(45deg, #ff0050, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-controls {
    display: flex;
    gap: 15px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 10px;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Ads container */
.ads-container {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Individual ad card */
.ad-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
}

.ad-card.current {
    transform: translateY(0);
}

.ad-card.prev {
    transform: translateY(-100vh);
}

.ad-card.next {
    transform: translateY(100vh);
}

/* Ad content */
.ad-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 90%;
    position: relative;
    z-index: 10;
}

.ad-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.ad-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.ad-cta {
    background: linear-gradient(45deg, #ff0050, #ff6b35);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(255, 0, 80, 0.3);
}

.ad-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 0, 80, 0.4);
}

/* Video/Image container */
.ad-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ad-media video,
.ad-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 5;
}

/* Loading spinner */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    display: none;
}

.loading-spinner.active {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #ff0050;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation hint */
.navigation-hint {
    position: fixed;
    bottom: 30px;
    right: 30px;
    text-align: center;
    opacity: 0.7;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

.navigation-hint p {
    font-size: 14px;
    margin-bottom: 5px;
}

.swipe-indicator {
    font-size: 20px;
    animation: bounce 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Ad Source Badges */
.ad-source-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 15;
    backdrop-filter: blur(10px);
}

/* Google AdSense Styles */
.google-ad-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adsbygoogle {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Meta Audience Network Styles */
.meta-ad-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
}

/* Unity Ads Styles */
.unity-ad-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unity-placeholder {
    text-align: center;
    color: #fff;
}

.game-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

/* Amazon Ads Styles */
.amazon-ad-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.amazon-logo {
    font-size: 60px;
    margin-bottom: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 300px;
}

.product-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

/* Revenue Analytics Indicator */
.revenue-indicator {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(45deg, #00c851, #007e33);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1001;
    box-shadow: 0 5px 15px rgba(0, 200, 81, 0.3);
    animation: pulse 2s infinite;
}

.revenue-indicator::before {
    content: "💰 ";
}

/* Ad Network Loading States */
.ad-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.ad-loading::after {
    content: "Loading Ad...";
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

/* Ad Error States */
.ad-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: rgba(255, 0, 0, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.ad-error::after {
    content: "Ad Failed to Load";
    font-size: 16px;
}

/* Responsive design */
@media (max-width: 768px) {
    .app-header h1 {
        font-size: 20px;
    }
    
    .ad-title {
        font-size: 2em;
    }
    
    .ad-description {
        font-size: 1em;
    }
    
    .navigation-hint {
        bottom: 20px;
        right: 20px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .ad-content {
        padding: 20px 15px;
    }
    
    .ad-title {
        font-size: 1.8em;
    }
    
    .ad-cta {
        padding: 12px 30px;
        font-size: 1em;
    }
}
