/* ==========================================================================
   Multibagger Prophets Leaderboard - Styles
   ========================================================================== */

/* Variables */
:root {
    --primary-color: #f59e0b;
    --primary-hover: #d97706;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-dark: #020617;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

em {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 600;
}

/* Navigation Bar */
.navbar {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo .logo {
    width: 40px;
    height: 40px;
}

.nav-logo .nav-brand {
    font-size: 1.33rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-text {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

.btn-primary, .btn-secondary, .btn-hero, .btn-cta, .btn-unlock-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.btn-hero, .btn-cta {
    background-color: var(--primary-color);
    color: white;
    font-size: 1.125rem;
    padding: 1rem 2rem;
}

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

.btn-unlock-large {
    background-color: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    margin-top: 1rem;
}

.btn-unlock-large:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-lg);
}

.btn-full-width {
    width: 100%;
}

.btn-unlock-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.btn-unlock-small:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #292524 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-caption {
    margin-top: 1.5rem;
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.update-badge {
    display: block;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
}

.beta-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #0f172a;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.pricing-display {
    margin-bottom: 0.75rem;
}

.price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.price-discounted {
    color: var(--primary-color);
    font-weight: 700;
}

/* Leaderboard Section */
.leaderboard-section {
    padding: 4rem 0;
    background-color: var(--bg-primary);
}

.section-uptitle {
    font-size: 1rem;
    text-align: center;
    margin-bottom: .5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.leaderboard-table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.leaderboard-table thead {
    background-color: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
}

.leaderboard-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.leaderboard-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table tbody tr {
    transition: background-color 0.2s;
}

.leaderboard-table tbody tr:hover {
    background-color: var(--bg-secondary);
}

.leaderboard-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Column Sizes */
.rank-col {
    width: 5%;
}

.predictor-col {
    width: 25%;
}

.multibaggers-col {
    width: 20%;
}

.best-pick-col {
    width: 30%;
}

.action-col {
    width: 20%;
}

/* Rank Badge */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.125rem;
}

.rank-badge.top-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
}

.rank-badge.top-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #1a1a1a;
}

.rank-badge.top-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #e6a85c 100%);
    color: #1a1a1a;
}

/* Predictor Cell */
.predictor-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.predictor-username {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.predictor-stats {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Multibaggers Cell */
.multibaggers-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.multibaggers-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
}

.multibaggers-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Best Pick Cell */
.best-pick-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.best-pick-ticker {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.best-pick-gain {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success-color);
}

.best-pick-proof {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.best-pick-proof:hover {
    text-decoration: underline;
}

/* Locked Section */
.locked-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.locked-overlay {
    position: relative;
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.locked-table {
    filter: blur(5px);
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
}

.locked-cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
}

.leaderboard-footer {
    text-align: center;
    margin-top: 2rem;
}

.loading-cell {
    text-align: center;
    padding: 3rem !important;
    color: var(--text-muted);
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

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

.step {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

.methodology-caption {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Final CTA Section */
.final-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #292524 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 0;
}

.modal-content {
    background-color: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.proof-modal-content {
    max-width: 600px;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

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

.modal-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Value Props List */
.value-props {
    list-style: none;
    margin-bottom: 2rem;
}

.value-props li {
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.value-props li:last-child {
    border-bottom: none;
}

/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
}

.toggle-label input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.discount-badge {
    background-color: var(--success-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="email"],
input[type="text"] {
    padding: 0.875rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.2s;
}

input[type="email"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-footer-text {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.modal-footer-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.modal-footer-text a:hover {
    text-decoration: underline;
}

.stripe-security-badge {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.stripe-security-badge > span {
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* Proof Modal Specific */
.proof-details {
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.proof-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.proof-row:last-child {
    border-bottom: none;
}

.proof-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.proof-value {
    color: var(--text-primary);
    font-weight: 500;
}

.proof-tweet-text {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Legal Content Section */
.legal-content {
    padding: 4rem 0;
    background-color: var(--bg-primary);
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.legal-content h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.legal-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-last-updated {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-links {
    margin: 0.75rem 0;
    font-size: 0.875rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-disclaimer {
    font-size: 1rem;
}

.footer-last-updated {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .nav-link.mobile-hide {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .leaderboard-table {
        font-size: 0.85rem;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.75rem 0.5rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn-hero, .btn-cta {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    .leaderboard-table {
        font-size: 0.75rem;
    }

    .rank-badge {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
    }

    .multibaggers-count {
        font-size: 1.25rem;
    }

    .best-pick-gain {
        font-size: 1rem;
    }
}

/* User Status Indicator (for logged in users) */
.user-status {
    display: none;
    align-items: center;
    gap: 0.5rem;
    color: var(--success-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.user-status.active {
    display: flex;
}

.user-status-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--success-color);
    border-radius: 50%;
}

/* All Picks Modal */
.all-picks-modal-content {
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
}

.all-picks-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.all-picks-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.all-picks-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.all-picks-table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.all-picks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.all-picks-table thead {
    background-color: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.all-picks-table th {
    padding: 0.875rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.all-picks-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.all-picks-table tbody tr {
    transition: background-color 0.2s;
}

.all-picks-table tbody tr:hover {
    background-color: var(--bg-secondary);
}

.all-picks-table tbody tr:last-child td {
    border-bottom: none;
}

/* Best Pick Row Highlight */
.best-pick-row {
    background-color: rgba(245, 158, 11, 0.1) !important;
}

.best-pick-row:hover {
    background-color: rgba(245, 158, 11, 0.15) !important;
}

.best-pick-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Pick Table Column Sizes */
.pick-rank-col {
    width: 8%;
}

.pick-stock-col {
    width: 20%;
}

.pick-gain-col {
    width: 22%;
}

.pick-date-col {
    width: 18%;
}

.pick-timing-col {
    width: 15%;
}

.pick-proof-col {
    width: 17%;
}

/* Pick Gain Display */
.pick-gain-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--success-color);
    display: block;
    margin-bottom: 0.125rem;
}

.pick-gain-multiple {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

/* Proof Link */
.proof-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.proof-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Responsive All Picks Modal */
@media (max-width: 768px) {
    .all-picks-modal-content {
        width: 98%;
        padding: 1.25rem;
        max-height: 90vh;
    }

    .all-picks-title {
        font-size: 1.25rem;
    }

    .all-picks-subtitle {
        font-size: 0.85rem;
    }

    .all-picks-table {
        font-size: 0.8rem;
    }

    .all-picks-table th,
    .all-picks-table td {
        padding: 0.625rem 0.5rem;
    }

    .best-pick-badge {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
        width: fit-content;
    }

    .pick-gain-value {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .all-picks-table {
        font-size: 0.7rem;
    }

    .all-picks-table th,
    .all-picks-table td {
        padding: 0.5rem 0.375rem;
    }

    .all-picks-title {
        font-size: 1.125rem;
    }

    .pick-gain-value {
        font-size: 0.9rem;
    }

    .pick-gain-multiple {
        font-size: 0.7rem;
    }
}
