/* style.css - Dark theme CSS for Paste-Life */

/* Base Variables */
:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent-red: #ff4444;
    --accent-red-hover: #ff6666;
    --border-color: #444444;
    --shadow: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
}

/* Navigation */
.navbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-brand a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.admin-link {
    color: var(--accent-red) !important;
}



/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 2000;
    transition: left 0.3s ease;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-content {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-red);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

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

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 100px;
    right: 1rem;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flash {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.flash-success { background: #28a745; color: white; }
.flash-error { background: #dc3545; color: white; }
.flash-info { background: #17a2b8; color: white; }
.flash-warning { background: #ffc107; color: #333; }

.flash-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 1rem;
}

/* Main Content */
.main-content {
    min-height: 80vh;
    padding: 2rem 0;
}

/* Homepage */
.hero-section {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Stats */
.stats-section {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

.stat-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px var(--shadow);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Advertisement Styles - Restructured for Better Integration */

/* Ad Wrapper - Common styling for all ad containers */
.ad-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Tutorial Placeholders - Remove these when adding real ads */
.ad-placeholder-vertical {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    width: 160px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
}

.ad-placeholder-horizontal {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    width: 320px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    margin: 0 auto;
}

.ad-placeholder-footer {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    width: 100%;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
}

/* DESKTOP ADVERTISEMENTS */

/* Desktop Sidebar Ads - Sticky positioning that follows scroll */
.desktop-ads-container {
    display: none; /* Hidden by default, shown on desktop */
}

.desktop-sidebar-ad {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 100;
    transition: opacity 0.3s ease;
}

.left-sidebar-ad {
    left: 20px;
}

.right-sidebar-ad {
    right: 20px;
}

/* Desktop Footer Ads - Three in a row before footer */
.desktop-footer-ads {
    display: none; /* Hidden by default, shown on desktop */
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.footer-ads-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-ad-item {
    display: flex;
    justify-content: center;
}

/* MOBILE ADVERTISEMENTS */

/* Mobile Ads Container */
.mobile-ads-container {
    display: block; /* Visible by default, hidden on desktop */
}

/* Mobile Header Ad - Below navigation */
.mobile-header-ad {
    padding: 1rem;
    text-align: center;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

/* Mobile Footer Ad - Above footer */
.mobile-footer-ad {
    display: block; /* Visible by default, hidden on desktop */
    padding: 1rem;
    text-align: center;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

/* RESPONSIVE DESIGN - Desktop vs Mobile */

/* Desktop: Show desktop ads, hide mobile ads */
@media (min-width: 769px) {
    .desktop-ads-container {
        display: block;
    }
    
    .desktop-footer-ads {
        display: block;
    }
    
    .mobile-ads-container {
        display: none;
    }
    
    .mobile-header-ad {
        display: none;
    }
    
    .mobile-footer-ad {
        display: none;
    }
}

/* Mobile: Hide desktop ads, show mobile ads */
@media (max-width: 768px) {
    .desktop-ads-container {
        display: none;
    }
    
    .desktop-footer-ads {
        display: none;
    }
    
    .mobile-ads-container {
        display: block;
    }
    
    .mobile-header-ad {
        display: block;
    }
    
    .mobile-footer-ad {
        display: block;
    }
}



/* Features */
.features-section {
    padding: 4rem 1rem;
    background: var(--bg-secondary);
}

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

.features-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

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

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.feature-item h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-red);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .footer-content {
        gap: 2rem;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Desktop only ad row */
@media (max-width: 992px) {
    .desktop-only {
        display: none;
    }
}

.page-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    color: var(--text-primary);
}
.page-container h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.page-container h2 {
    margin-top: 1.5rem;
    color: #ff4d4d; /* red accent */
}
