/* Triarch Payment Pages - Shared Styles */
/* Used by: Buy.cshtml, Upgrade.cshtml, Success.cshtml */

/* Landing Page Design System */
:root {
    --landing-bg: #f8fafc;
    --landing-text-primary: #0f172a;
    --landing-text-secondary: #334155;
    --landing-text-muted: #64748b;
    --landing-surface: #ffffff;
    --landing-border: #e2e8f0;
    --landing-shadow: rgba(0, 0, 0, 0.04);
    --landing-shadow-elevated: rgba(0, 0, 0, 0.1);
    --landing-primary: #2C5AA0;
    --landing-secondary: #00BFA0;
    --landing-gradient-primary: linear-gradient(135deg, #2C5AA0, #00BFA0);
    --landing-gradient-secondary: linear-gradient(135deg, #c97a27, #a86520);
    --landing-success: #10b981;
}

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

body {
    margin: 0;
    padding: 0;
    background: var(--landing-bg);
    color: var(--landing-text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.landing-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Background Effects */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--landing-bg);
    overflow: hidden;
}

.page-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(44, 90, 160, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 191, 160, 0.05) 0%, transparent 50%);
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--landing-gradient-primary);
    opacity: 0.03;
    animation: float 20s ease-in-out infinite;
}

.bg-shape:nth-child(1) {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -5%;
}

.bg-shape:nth-child(2) {
    width: 300px;
    height: 300px;
    top: 60%;
    right: -5%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* Navigation Bar */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 3rem;
    background: var(--landing-surface);
    border-bottom: 1px solid var(--landing-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px var(--landing-shadow);
}

.nav__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav__logo img {
    height: 35px;
    width: auto;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--landing-gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--landing-text-muted);
    font-size: 1.1rem;
}

/* Footer */
.landing-footer {
    background: var(--landing-surface);
    border-top: 1px solid var(--landing-border);
    padding: 2rem 3rem;
    margin-top: auto;
    text-align: center;
}

.landing-footer__copyright {
    color: var(--landing-text-muted);
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
}

/* Common Card Styles */
.product-card,
.plan-card {
    background: var(--landing-surface);
    border: 2px solid var(--landing-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px var(--landing-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.product-card:hover,
.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px var(--landing-shadow-elevated);
}

/* Buttons */
.btn-primary-gradient {
    background: var(--landing-gradient-primary);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 18px rgba(44, 90, 160, 0.25);
    text-decoration: none;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(44, 90, 160, 0.35);
    color: white;
}

/* Badges */
.package-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--landing-gradient-secondary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(201, 122, 39, 0.3);
}

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

    .landing-footer {
        padding: 2rem 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .product-card,
    .plan-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav__logo img {
        height: 28px;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
}
