/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header & Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 28px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #667eea;
}

.nav-links a.active {
    color: #667eea;
}

.btn-upload {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0 0 20px 20px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat i {
    font-size: 36px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.count {
    display: block;
    font-size: 32px;
    font-weight: bold;
}

.label {
    font-size: 14px;
    opacity: 0.8;
}

/* Categories */
.categories {
    margin-bottom: 40px;
}

.categories h2 {
    font-size: 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.category-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.category-icon {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 10px;
}

.category-name {
    font-weight: 500;
}

/* Gallery */
.gallery {
    margin-bottom: 60px;
}

.gallery h2 {
    font-size: 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.image-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.image-card:hover {
    transform: translateY(-10px);
}

.image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.image-card:hover .image-container img {
    transform: scale(1.05);
}

.premium-badge, .nsfw-badge {
    position: absolute;
    top: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.premium-badge {
    left: 10px;
    background: gold;
    color: #333;
}

.nsfw-badge {
    right: 10px;
    background: #f44336;
    color: white;
}

.image-info {
    padding: 20px;
}

.image-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.image-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.image-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}

.image-actions {
    display: flex;
    gap: 10px;
}

.btn-view, .btn-download {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-view {
    background: #f0f0f0;
    color: #333;
}

.btn-view:hover {
    background: #e0e0e0;
}

.btn-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-download:hover {
    opacity: 0.9;
}

/* How It Works */
.how-it-works {
    margin-bottom: 60px;
}

.how-it-works h2 {
    font-size: 28px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.step-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.step p {
    color: #666;
}

/* Premium Section */
.premium-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 60px;
}

.premium-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.premium-description {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.premium-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.feature i {
    font-size: 20px;
    color: gold;
}

.btn-premium {
    display: inline-block;
    background: gold;
    color: #333;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn-premium:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 40px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #667eea;
}

.footer-section a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    font-size: 20px;
    background: #444;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 14px;
}

.status.online {
    color: #4CAF50;
    font-weight: bold;
}

/* Image Detail Page */
.image-detail-container {
    padding-top: 20px;
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb i {
    margin: 0 10px;
    font-size: 12px;
}

.image-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .image-detail {
        grid-template-columns: 1fr;
    }
}

.image-preview {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.premium-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 215, 0, 0.9);
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}

.image-info-detail h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.image-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.image-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f5f7fa;
    border-radius: 8px;
}

.meta-item i {
    color: #667eea;
    font-size: 18px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tag {
    background: #e0e7ff;
    color: #667eea;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.download-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.download-section h2 {
    font-size: 24px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.download-option {
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.download-option.free {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4efe9 100%);
    border: 2px solid #4CAF50;
}

.download-option.premium {
    background: linear-gradient(135deg, #fff8e1 0%, #ffeaa7 100%);
    border: 2px solid gold;
}

.download-option h3 {
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-option.premium h3 {
    color: #333;
}

.ad-network-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.btn-ad-download, .btn-premium-download {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn-ad-download {
    background: #4CAF50;
    color: white;
}

.btn-ad-download:hover {
    background: #45a049;
    transform: translateY(-3px);
}

.btn-premium-download {
    background: linear-gradient(135deg, gold 0%, #ffd700 100%);
    color: #333;
}

.btn-premium-download:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}

.small-note {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.small-note i {
    color: #667eea;
}

.revenue-info {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
}

.revenue-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.revenue-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.revenue-item i {
    font-size: 24px;
    color: #667eea;
    margin-top: 5px;
}

.revenue-item strong {
    display: block;
    margin-bottom: 5px;
}

.revenue-item p {
    color: #666;
    font-size: 14px;
}

.related-images {
    margin-top: 60px;
}

.related-images h2 {
    font-size: 28px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.related-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-card h4 {
    padding: 15px;
    font-size: 16px;
}

.related-card a {
    text-decoration: none;
    color: inherit;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading i {
    font-size: 36px;
    margin-bottom: 20px;
}

.image-footer {
    background: #333;
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

.image-footer .footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.image-footer p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-back {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .image-grid, .category-grid, .steps {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .premium-features {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .stats {
        gap: 20px;
    }
    
    .stat i {
        font-size: 24px;
    }
    
    .count {
        font-size: 24px;
    }
    
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .image-grid, .category-grid {
        grid-template-columns: 1fr;
    }
}
