/* PopUpAt Global Styles - Based on Brand Kit */

/* ========================================
   RESET & BASE
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #2E2E2E;
    line-height: 1.6;
    background: #FFF5E6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* ========================================
   BRAND COLORS (CSS Variables)
======================================== */
:root {
    --orange: #F26722;
    --orange-hover: #d95a1e;
    --teal: #1BA89E;
    --teal-hover: #168a81;
    --green: #7BC950;
    --green-hover: #6aad42;
    --cream: #FFF5E6;
    --charcoal: #2E2E2E;
    --grey-light: #E5E5E5;
    --grey-text: #666;
}

/* ========================================
   BUTTONS
======================================== */
.btn-primary,
.btn-orange {
    display: inline-block;
    background: var(--orange);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

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

.btn-venue {
    display: inline-block;
    background: var(--teal);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

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

.btn-vendor {
    display: inline-block;
    background: var(--green);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

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

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--orange);
    border: 2px solid var(--orange);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

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

button:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ========================================
   HEADER
======================================== */
header {
    background: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
}

.header-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 150px;
    width: auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

/* ========================================
   MARKETING NAV (Pre-Paywall Pages)
======================================== */
.marketing-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.marketing-nav a {
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.marketing-nav a:hover {
    color: var(--orange);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--orange);
    cursor: pointer;
}

/* ========================================
   HERO SECTION (Marketing Pages)
======================================== */
.hero {
    background: var(--orange);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 450px;
    height: 450px;
    background: var(--green);
    border-radius: 50%;
    opacity: 1;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -35%;
    left: -8%;
    width: 400px;
    height: 400px;
    background: var(--teal);
    border-radius: 50%;
    opacity: 1;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: white;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    background: white;
    color: var(--orange);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

/* ========================================
   FORMS
======================================== */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--grey-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--orange);
}

small {
    display: block;
    margin-top: 0.25rem;
    color: var(--grey-text);
    font-size: 0.875rem;
}

/* ========================================
   CARDS
======================================== */
.card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--grey-light);
    transition: opacity 0.3s;
    opacity: 0;
}

.card.venue::before {
    background: var(--teal);
}

.card.venue:hover::before {
    opacity: 1;
}

.card.vendor::before {
    background: var(--green);
}

.card.vendor:hover::before {
    opacity: 1;
}

.card.orange::before,
.card.browse::before {
    background: var(--orange);
}

.card.orange:hover::before,
.card.browse:hover::before {
    opacity: 1;
}

.card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ========================================
   PROFILE CARDS (for browse/dashboard)
======================================== */
.profile-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    padding: 1rem;
    position: relative;
    border: 3px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.profile-card.venue {
    border-color: var(--teal);
}

.profile-card.vendor {
    border-color: var(--green);
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Profile Star Button (Favorite) */
.profile-star-btn {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    line-height: 1;
    z-index: 10;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.profile-star-btn:hover {
    transform: scale(1.15);
}

.profile-logo {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 75px;
    height: 75px;
    background: white;
    border-radius: 8px;
    padding: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.profile-location {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    margin: 0;
}

.profile-meta {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.meta-tag {
    padding: 0.35rem 0.85rem;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #555;
    font-weight: 600;
}

.meta-tag.venue {
    background: var(--teal);
    color: white;
}

.meta-tag.vendor {
    background: var(--green);
    color: white;
}

.profile-card-content {
    padding-right: 85px;
    padding-bottom: 30px;
    padding-left: 40px;  /* Added padding to avoid star overlap */
    display: flex;
    flex-direction: column;
    flex: 1;
}

.profile-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    line-height: 1.3;
    color: #2E2E2E;
}

.profile-description {
    color: #555;
    line-height: 1.5;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* Staggered animation delays for multiple items */
.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.fade-in-up:nth-child(5) { animation-delay: 0.5s; }

/* ========================================
   MESSAGES & ALERTS
======================================== */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.show {
    display: block;
}

/* ========================================
   BADGES
======================================== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-grey {
    background: var(--grey-light);
    color: var(--grey-text);
}

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

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

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

/* ========================================
   CONTAINER & LAYOUT
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.container-narrow {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ========================================
   FOOTER
======================================== */
footer {
    background: var(--charcoal);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

footer a {
    color: var(--orange);
    text-decoration: none;
}

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

/* ========================================
   UTILITIES
======================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }

    header {
        padding: 1rem;
    }

    .header-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .logo img {
        height: 100px;
    }

    .marketing-nav {
        display: none;
    }

    /* Mobile menu when active */
    .marketing-nav.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 100;
        gap: 1rem;
    }

    .menu-toggle {
        display: block;
    }

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