/* OP Games Website Styles */
:root {
    --primary-color: #FFD700;
    --primary-hover: #FFA500;
    --secondary-color: #64748b;
    --accent-color: #FFD700;
    --background-color: #0b0b0c;
    --surface-color: #18181b;
    --border-color: #FFD700;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    
    --container-max-width: 1200px;
    --header-height: 70px;
    --footer-height: 60px;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    
    --border-radius: 0.5rem;
    --border-radius-sm: 0.25rem;
    --border-radius-lg: 0.75rem;
}

/* Layout Components */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
    padding-top: var(--header-height);
    padding-bottom: 2rem;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--background-color);
    border-bottom: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo:hover {
    color: var(--primary-hover);
    transition: color 0.2s ease;
}

/* Navigation Styles */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Ensure nav-menu is always visible on desktop */
@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
    }
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: var(--surface-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 3px;
    padding: 0.5rem;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Main Content Styles */
.main-content {
    padding: 2rem 0;
}

.hero-section {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--background-color) 100%);
    margin-bottom: 3rem;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.hero-cta:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Section Styles */
.section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Card Styles */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.card-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer Styles */
.footer {
    background-color: var(--surface-color);
    border-top: 2px solid var(--border-color);
    padding: 2rem 0;
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: underline;
    transition: all 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
}

.footer-link:hover {
    color: var(--primary-color);
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateY(-1px);
}

/* CTA Button Styles */
.cta-btn {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.75rem 1.5rem;
    color: #FFD700;
    border: 2px solid #FFD700;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #FFD700;
    color: #000;
    transform: translateY(-2px);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Enhanced Mobile Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Enhanced Mobile Navigation */
    .nav {
        position: relative;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: -1rem;
        right: -1rem;
        background-color: var(--background-color);
        border: 2px solid var(--border-color);
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        gap: 0;
        padding: 0;
        z-index: 999;
        transition: all 0.3s ease;
        list-style: none;
        margin: 0;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-menu li {
        display: block;
        width: 100%;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
        display: block;
        width: 100%;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 1.25rem 2rem;
        width: 100%;
        text-align: left;
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--text-secondary);
        border: none;
        border-radius: 0;
        transition: all 0.2s ease;
        display: block;
        position: relative;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: var(--surface-color);
        color: var(--primary-color);
        padding-left: 2.5rem;
    }
    
    .nav-link:hover::before,
    .nav-link.active::before {
        content: '▶';
        position: absolute;
        left: 1.5rem;
        color: var(--primary-color);
        font-size: 0.8rem;
    }
    
    /* Enhanced Mobile Menu Toggle */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 0.75rem;
        cursor: pointer;
        border: 2px solid transparent;
        border-radius: var(--border-radius);
        background-color: var(--surface-color);
        transition: all 0.3s ease;
        position: relative;
        width: 44px;
        height: 44px;
        justify-content: center;
        align-items: center;
    }
    
    .nav-toggle:hover {
        border-color: var(--border-color);
        background-color: var(--background-color);
    }
    
    .nav-toggle span {
        width: 22px;
        height: 3px;
        background-color: var(--text-primary);
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .nav-toggle.active {
        background-color: var(--primary-color);
    }
    
    .nav-toggle.active span {
        background-color: var(--background-color);
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Mobile Header Adjustments */
    .header-content {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo img {
        width: 28px !important;
        height: 28px !important;
    }
    
    /* Mobile Content Improvements */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    /* Touch-friendly buttons */
    .cta-btn,
    .btn {
        min-height: 44px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    /* Small mobile adjustments */
    .nav-menu {
        left: -0.75rem;
        right: -0.75rem;
    }
    
    .nav-link {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .nav-link:hover,
    .nav-link.active {
        padding-left: 2rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo img {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Donation Page Specific Styles */
.donation-amount {
    flex: 1;
    min-width: 60px;
    transition: all 0.3s ease;
}

.donation-amount:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.donation-amount.active {
    background-color: var(--primary-color);
    color: var(--background-color);
    border-color: var(--primary-color);
}

.crypto-option {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.crypto-option:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.crypto-options {
    margin: 1rem 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Enhanced button interactions */
.btn:active {
    transform: translateY(1px);
}

.btn.active {
    background-color: var(--primary-color);
    color: var(--background-color);
    border-color: var(--primary-color);
}

/* Copy button feedback */
@keyframes copySuccess {
    0% { background-color: var(--success-color); }
    100% { background-color: var(--secondary-color); }
}

.btn.copied {
    animation: copySuccess 0.8s ease;
}

/* Data Collection & Monetization Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border-top: 3px solid var(--primary-color);
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text h3 {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.cookie-text p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.cookie-modal {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid var(--primary-color);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cookie-modal-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: var(--primary-color);
}

.cookie-modal-content {
    padding: 1.5rem;
}

.cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category h4 {
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.cookie-category p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.3;
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:disabled + .slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Newsletter Signup */
.newsletter-section {
    background: linear-gradient(135deg, var(--surface-color) 0%, rgba(255, 215, 0, 0.1) 100%);
    padding: 3rem 0;
    margin: 2rem 0;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    text-align: center;
    width: 100%;
}

.newsletter-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.newsletter-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    background: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

.newsletter-consent {
    text-align: left;
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-consent label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1.4;
}

.newsletter-consent input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.newsletter-consent .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    background-color: var(--background-color);
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.newsletter-consent input:checked + .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.newsletter-consent input:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--background-color);
    font-weight: bold;
    font-size: 12px;
}

.newsletter-consent a {
    color: var(--primary-color);
    text-decoration: underline;
}

.newsletter-consent a:hover {
    color: var(--primary-hover);
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1002;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: var(--success-color, #10b981);
    border-left: 4px solid #059669;
}

.notification-error {
    background: #ef4444;
    border-left: 4px solid #dc2626;
}

.notification-info {
    background: #3b82f6;
    border-left: 4px solid #2563eb;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .newsletter-input-group {
        flex-direction: column;
        max-width: 100%;
        gap: 0.75rem;
    }
    
    .newsletter-consent {
        max-width: 100%;
        font-size: 0.85rem;
    }
    
    .cookie-modal {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
}
