/* Monster Hunt Website - Dark Theme */

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --border-color: #30363d;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent-blue: #58a6ff;
    --accent-green: #3fb950;
    --accent-red: #f85149;
    --accent-orange: #d29922;
    --accent-purple: #a371f7;
    --shadow: 0 8px 24px rgba(1, 4, 9, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Stats Banner */
.stats-banner {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1rem 2rem;
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-green);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 2rem;
    text-align: center;
}

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

.logo {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.logo-img {
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 0.5rem;
    vertical-align: baseline;
    position: relative;
    top: 0.25rem;
}

.tagline {
    font-size: 1.5rem;
    color: var(--accent-purple);
    font-weight: 500;
    font-style: italic;
}

/* Header Action Buttons (Add to Server, Subscribe, Support) */
.add-to-server-btn,
.subscribe-btn,
.support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    min-width: 180px;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.add-to-server-btn {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.add-to-server-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5);
    background: linear-gradient(135deg, #6875F5 0%, #5865F2 100%);
}

.discord-icon {
    font-size: 1.25rem;
}

.support-btn {
    background: linear-gradient(135deg, #43B581 0%, #3CA374 100%);
    box-shadow: 0 4px 15px rgba(67, 181, 129, 0.4);
}

.support-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 181, 129, 0.5);
    background: linear-gradient(135deg, #4FD195 0%, #43B581 100%);
}

/* Leaderboard Feature Section */
.leaderboard-feature {
    justify-content: center;
}

.leaderboard-content {
    text-align: center;
    max-width: 800px;
}

.leaderboard-list {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.leaderboard-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hunter-rank {
    font-size: 1.5rem;
    min-width: 2rem;
}

.hunter-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.hunter-catches {
    color: var(--accent-green);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Feature Sections */
.feature-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-section:last-of-type {
    border-bottom: none;
}

.feature-section.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

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

.feature-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.feature-image {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.monster-gif {
    max-width: 250px;
    max-height: 250px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background-color: var(--bg-secondary);
    padding: 1rem;
    border: 1px solid var(--border-color);
}

/* Developer Section */
.developer-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 5rem 2rem;
    margin-top: 3rem;
}

.developer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.developer-photo {
    flex: 0 0 200px;
}

.developer-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-purple);
    box-shadow: var(--shadow);
}

.developer-info {
    flex: 1;
}

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

.developer-subtitle {
    font-size: 1.125rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.developer-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-purple);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.contact-link:hover {
    background-color: #b07cf8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(163, 113, 247, 0.4);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-banner {
        gap: 1.5rem;
        padding: 0.75rem 1rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .leaderboard-section {
        padding: 1.5rem 1rem;
    }

    .leaderboard-list {
        gap: 0.75rem;
    }

    .leaderboard-entry {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .header {
        padding: 3rem 1.5rem;
    }

    .logo {
        font-size: 2.5rem;
    }

    .logo-img {
        width: 2rem;
        height: 2rem;
    }

    .tagline {
        font-size: 1.25rem;
    }

    .feature-section {
        flex-direction: column;
        padding: 3rem 0;
        gap: 2rem;
    }

    .feature-section.reverse {
        flex-direction: column;
    }

    .feature-image {
        flex: none;
        order: -1;
    }

    .monster-gif {
        max-width: 200px;
        max-height: 200px;
    }

    .feature-title {
        font-size: 1.5rem;
    }

    .developer-content {
        flex-direction: column;
        text-align: center;
    }

    .developer-photo {
        flex: none;
    }

    .developer-photo img {
        width: 150px;
        height: 150px;
    }
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.monster-gif {
    animation: float 3s ease-in-out infinite;
}

.feature-section:nth-child(2) .monster-gif {
    animation-delay: 0.5s;
}

.feature-section:nth-child(3) .monster-gif {
    animation-delay: 1s;
}

/* ======================================
   SUBSCRIPTION PAGES
   ====================================== */

/* Subscribe Button in Header */
.header-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.subscribe-btn {
    background: linear-gradient(135deg, var(--accent-green) 0%, #2da44e 100%);
    box-shadow: 0 4px 15px rgba(63, 185, 80, 0.4);
}

.subscribe-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(63, 185, 80, 0.5);
    background: linear-gradient(135deg, #4ac369 0%, var(--accent-green) 100%);
}

/* Subscription Page Container */
.subscription-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Login Page */
.login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow);
}

.login-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-logo img {
    width: 2rem;
    height: 2rem;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

.discord-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.discord-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

.discord-login-btn svg {
    width: 24px;
    height: 24px;
}

.login-footer {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.login-footer a {
    color: var(--accent-blue);
    text-decoration: none;
}

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

/* Dashboard Page */
.dashboard-container {
    flex: 1;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--accent-purple);
}

.user-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.user-info p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.dashboard-nav {
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

.dashboard-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.dashboard-nav a:hover {
    color: var(--text-primary);
}

/* Status Cards */
.status-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.status-card.trial {
    border-color: var(--accent-orange);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(210, 153, 34, 0.1) 100%);
}

.status-card.active {
    border-color: var(--accent-green);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(63, 185, 80, 0.1) 100%);
}

.status-card.past-due {
    border-color: var(--accent-red);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(248, 81, 73, 0.1) 100%);
}

.status-card.expired {
    border-color: var(--text-muted);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-badge.trial {
    background-color: var(--accent-orange);
    color: white;
}

.status-badge.active {
    background-color: var(--accent-green);
    color: white;
}

.status-badge.past-due {
    background-color: var(--accent-red);
    color: white;
}

.status-badge.expired,
.status-badge.cancelled,
.status-badge.new {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

.status-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.status-details p {
    margin-bottom: 0.5rem;
}

.status-details strong {
    color: var(--text-primary);
}

/* Pricing Cards */
.pricing-section {
    margin-top: 2rem;
}

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

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

.pricing-card {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.pricing-card.recommended {
    border-color: var(--accent-green);
    position: relative;
}

.pricing-card.recommended::before {
    content: "Best Value";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-green);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-savings {
    color: var(--accent-green);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
    padding: 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.pricing-features li::before {
    content: "✓";
    color: var(--accent-green);
    font-weight: 700;
}

/* Action Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-green) 0%, #2da44e 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(63, 185, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(63, 185, 80, 0.4);
}

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

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

.btn-danger {
    background-color: transparent;
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

.btn-danger:hover {
    background-color: rgba(248, 81, 73, 0.1);
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(88, 101, 242, 0.4);
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background-color: rgba(63, 185, 80, 0.15);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}

.alert-error {
    background-color: rgba(248, 81, 73, 0.15);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
}

.alert-warning {
    background-color: rgba(210, 153, 34, 0.15);
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
}

.alert-info {
    background-color: rgba(155, 89, 182, 0.15);
    border: 1px solid #9b59b6;
    color: #9b59b6;
}

/* Success/Cancel Pages */
.result-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.result-icon.success {
    color: var(--accent-green);
}

.result-icon.cancel {
    color: var(--accent-orange);
}

.result-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.result-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

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

/* Action Buttons Row */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.action-buttons form {
    flex: 1;
}

/* Responsive for Subscription Pages */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }

    .dashboard-nav {
        margin-left: 0;
        margin-top: 1rem;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .header-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Logout Banner */
.logout-banner {
    background: linear-gradient(90deg, #059669, #10b981);
    color: white;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
