/* PickleUp - Unified Styles */

/* ========================================
   CSS Variables - Brand Colors
   ======================================== */
:root {
    /* Brand Colors - Match Mobile App */
    --purple-primary: #7C3AED;
    --purple-secondary: #8B5CF6;
    --green-primary: #10B981;

    /* Neutral Colors */
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* Gradients */
    --gradient-purple: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-secondary) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(124, 58, 237, 0.25);
    --shadow-lg: 0 20px 60px rgba(124, 58, 237, 0.25);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Layout - Page Backgrounds
   ======================================== */
body.bg-gradient-purple {
    background: var(--gradient-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    padding-top: 80px;
}

body.bg-light {
    background: var(--gray-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--gray-800);
    padding-top: 80px;
}

/* Top Header Bar */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 20px;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-brand {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.header-brand:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.header-brand:active {
    transform: translateY(0);
}

/* Responsive header sizing */
@media (min-width: 768px) {
    .top-header {
        padding: 20px 40px;
    }

    .header-brand {
        font-size: 32px;
    }
}

@media (min-width: 1024px) {
    .header-brand {
        font-size: 36px;
    }
}

/* ========================================
   Common Components
   ======================================== */

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.container-sm {
    width: 100%;
    max-width: 500px;
}

/* Card */
.card {
    background: white;
    border-radius: 20px;
    padding: 36px 24px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease-out;
}

.card-lg {
    padding: 48px 32px;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
.icon {
    font-size: 64px;
    text-align: center;
    margin-bottom: 20px;
}

.icon-lg {
    font-size: 72px;
    margin-bottom: 24px;
}

.title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.title-lg {
    font-size: 32px;
    margin-bottom: 16px;
}

.subtitle {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 32px;
    text-align: center;
}

@media (min-width: 768px) {
    .title {
        font-size: 28px;
    }

    .title-lg {
        font-size: 36px;
    }

    .subtitle {
        font-size: 20px;
    }
}

.brand-green {
    color: var(--green-primary);
}

.brand-purple {
    color: var(--purple-primary);
}

/* Buttons */
.primary-button {
    display: block;
    width: 100%;
    background: var(--gradient-purple);
    color: white;
    font-size: 17px;
    font-weight: 600;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    cursor: pointer;
    font-family: inherit;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}

.primary-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--gray-50);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
    border: 1px solid var(--gray-200);
}

.download-button:hover {
    background: var(--gray-100);
    transform: translateY(-1px);
}

.download-button:active {
    transform: translateY(0);
    background: var(--gray-200);
}

.button-icon {
    font-size: 24px;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Divider */
.divider {
    text-align: center;
    margin: 28px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-200);
}

.divider span {
    position: relative;
    background: white;
    padding: 0 16px;
    color: var(--gray-400);
    font-size: 14px;
}

.download-section {
    margin-top: 32px;
    text-align: center;
}

.download-title {
    font-size: 18px;
    font-weight: 600;
    color: #64748B;
    text-align: center;
    margin-bottom: 16px;
}

.download-title-lg {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

/* ========================================
   Game Invite Page Specific
   ======================================== */
.details {
    background: var(--gray-50);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.5;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-icon {
    font-size: 18px;
    width: 24px;
    flex-shrink: 0;
    line-height: 1.5;
}

.detail-text {
    flex: 1;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message {
    background: var(--gray-100);
    border-left: 4px solid var(--purple-primary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.message p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ========================================
   Landing Page Specific
   ======================================== */
.hero {
    text-align: center;
    margin-bottom: 80px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 20px;
    font-weight: 400;
    color: var(--gray-500);
    margin-bottom: 40px;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 64px;
    }

    .tagline {
        font-size: 26px;
    }
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.feature {
    background: var(--green-primary);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
    color: white;
}

.feature h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.feature p {
    font-size: 18px;
    opacity: 0.95;
    line-height: 1.6;
}

.cta {
    text-align: center;
    margin-bottom: 60px;
}

.cta h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .feature h3 {
        font-size: 26px;
    }

    .feature p {
        font-size: 19px;
    }

    .cta h2 {
        font-size: 40px;
    }
}

.coming-soon {
    display: inline-block;
    background: var(--green-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 12px;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--gray-500);
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.download-buttons .download-button {
    background: var(--purple-primary);
    color: white;
    padding: 18px 36px;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
    width: 100%;
    max-width: 360px;
}

.download-buttons .download-button:hover {
    background: var(--purple-secondary);
    box-shadow: 0 6px 30px rgba(124, 58, 237, 0.4);
}

.download-buttons .button-icon {
    font-size: 28px;
}

/* Footer */
footer {
    background: #FFFFFF;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--gray-200);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
}

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

.copyright {
    font-size: 14px;
    color: var(--gray-400);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .tagline {
        font-size: 20px;
    }

    .cta h2 {
        font-size: 28px;
    }

    .features {
        gap: 20px;
    }

    .feature {
        padding: 32px 24px;
    }
}

@media (max-width: 600px) {
    .card {
        padding: 28px 20px;
    }

    .card-lg {
        padding: 32px 24px;
    }

    .title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .title-lg {
        font-size: 24px;
    }

    .icon {
        font-size: 48px;
        margin-bottom: 12px;
    }

    .icon-lg {
        font-size: 48px;
    }

    .details {
        padding: 16px;
    }

    .detail-row {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .primary-button {
        font-size: 16px;
        padding: 14px 20px;
    }

    .download-button {
        font-size: 14px;
        padding: 12px 16px;
    }
}
