/* Casino Secrets - Modern CSS */
:root {
    --primary: #c62828;
    --primary-dark: #8b0000;
    --secondary: #F5B91B;
    --dark: #1a1a2e;
    --darker: #0f0f17;
    --light: #f0f0f0;
    --gray: #888;
    --success: #2e7d32;
    --error: #c62828;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

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

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

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--secondary);
}

.btn-login, .btn-register, .btn-logout {
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.btn-login {
    background: transparent;
    border: 1px solid var(--primary);
}

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

.btn-logout {
    background: #2a2a3a;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Date Bar */
.date-bar {
    background: var(--primary);
    padding: 0.5rem 0;
    font-size: 0.8rem;
}

.date-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.date-bar .quote {
    font-style: italic;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--dark) 0%, #0a0a0a 100%);
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.hero-quote {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #ccc;
}

/* Join Now Button - Hero Section */
.btn-join-now {
    display: inline-block;
    background: #c62828;
    color: white;
    padding: 14px 32px;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.4);
    letter-spacing: 1px;
    margin-top: 20px;
    border: none;
    cursor: pointer;
}

.btn-join-now:hover {
    background: #8b0000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(198, 40, 40, 0.6);
}

/* Join Now Button - CTA Section (larger) */
.btn-join-now-large {
    display: inline-block;
    background: #ffffff;
    color: #c62828;
    padding: 16px 40px;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    margin-top: 15px;
    border: none;
    cursor: pointer;
}

.btn-join-now-large:hover {
    background: #F5B91B;
    color: #1a1a2e;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

.btn-paypal {
    background: #0070ba;
    color: white;
}

.btn-paypal:hover {
    background: #003087;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-secondary {
    background: #2a2a3a;
    color: white;
}

/* Features */
.features {
    padding: 4rem 0;
    background: var(--darker);
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--dark);
    border-radius: 12px;
    transition: transform 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.feature-card p {
    color: #aaa;
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta .price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1rem 0;
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.book-card {
    background: var(--darker);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #2a2a3a;
    transition: transform 0.3s;
}

.book-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.book-card h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.book-card p {
    color: #aaa;
    font-size: 0.85rem;
}

/* Purchase Box */
.purchase-box {
    background: linear-gradient(135deg, #c62828, #8b0000);
    text-align: center;
    padding: 40px 20px;
    border-radius: 16px;
    margin-top: 30px;
}

.purchase-box h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 10px;
}

.purchase-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
}

.already-member {
    background: var(--darker);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
    border: 2px solid var(--secondary);
}

/* PayPal Button */
.paypal-button {
    background: #0070ba;
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.paypal-button:hover {
    background: #003087;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Auth Forms */
.auth-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.auth-box {
    max-width: 450px;
    width: 100%;
    background: var(--darker);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #2a2a3a;
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

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

.auth-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: #aaa;
}

.auth-form input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #2a2a3a;
    border-radius: 6px;
    background: var(--dark);
    color: white;
    font-size: 1rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.auth-link a {
    color: var(--secondary);
}

/* Alerts */
.alert {
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-error {
    background: rgba(198, 40, 40, 0.2);
    border: 1px solid var(--error);
    color: #ffcdd2;
}

.alert-success {
    background: rgba(46, 125, 50, 0.2);
    border: 1px solid var(--success);
    color: #a5d6a7;
}

/* Admin Dashboard */
.admin-dashboard, .admin-section {
    padding: 2rem 0;
    min-height: 70vh;
}

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

.stat-card {
    background: var(--darker);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #2a2a3a;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
}

.stat-label {
    color: #aaa;
    margin-top: 0.3rem;
}

.admin-menu {
    margin-top: 2rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.menu-item {
    background: var(--darker);
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: white;
    border-radius: 10px;
    transition: all 0.3s;
    border: 1px solid #2a2a3a;
}

.menu-item:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Admin Tables */
.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--darker);
    border-radius: 10px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #2a2a3a;
}

.admin-table th {
    background: #0a0a0a;
    color: var(--secondary);
}

.admin-table tr:hover {
    background: #1a1a2a;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-warning {
    background: #ed6c02;
    color: white;
}

.badge-danger {
    background: var(--error);
    color: white;
}

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

.badge-pending {
    background: #ed6c02;
    color: white;
}

.badge-completed {
    background: var(--success);
    color: white;
}

.btn-small {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: #2a2a3a;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 0.3rem;
}

.btn-danger {
    background: var(--error);
}

.actions {
    white-space: nowrap;
}

/* Admin Card */
.admin-card {
    background: var(--darker);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.admin-card h2 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.form-inline .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #2a2a3a;
    border-radius: 6px;
    background: var(--dark);
    color: white;
}

/* Member Dashboard */
.member-dashboard {
    padding: 2rem 0;
    min-height: 70vh;
}

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

.dashboard-card {
    background: var(--darker);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #2a2a3a;
}

.dashboard-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    border-bottom: 1px solid #2a2a3a;
    padding-bottom: 0.5rem;
}

.download-list {
    list-style: none;
}

.download-list li {
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    background: var(--dark);
    border-radius: 6px;
}

.download-list a {
    color: white;
    text-decoration: none;
}

.download-list a:hover {
    color: var(--secondary);
}

.download-size {
    font-size: 0.7rem;
    color: #666;
    margin-left: 0.5rem;
}

/* Info Box */
.info-box {
    background: #0d0d15;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.85rem;
    border: 1px solid #2a2a3a;
}

.info-box code {
    background: var(--dark);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: var(--secondary);
}

/* Footer */
.footer {
    background: var(--darker);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
    border-top: 1px solid #2a2a3a;
}

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

.footer-section h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #2a2a3a;
    font-size: 0.8rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .date-bar .container {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .btn-join-now, .btn-join-now-large {
        padding: 12px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-join-now, .btn-join-now-large {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .purchase-box h2 {
        font-size: 22px;
    }
}