:root {
    --maroon: #630031;
    --orange: #F26522;
    --beige: #E8E6E1;
    --dark-maroon: #4A0024;
    --light-beige: #F7F7F2;
    --text-dark: #2C2C2C;
    --text-light: #FFFFFF;
    --danger: #dc3545;
}

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

body {
    font-family: 'Crimson Text', serif;
    color: var(--text-dark);
    background-color: var(--light-beige);
    line-height: 1.8;
    font-size: 18px;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* NAVIGATION */
.navbar {
    background-color: var(--maroon);
    padding: 0.3rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.logo-image {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    padding: 0.4rem 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--orange);
}

/* MAIN CONTENT */
main {
    min-height: calc(100vh - 200px);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

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

/* HOME PAGE */
.hero {
    background: linear-gradient(135deg, #F7F7F2 0%, #E8E6E1 100%);
    color: var(--text-dark);
    padding: 0;
    text-align: center;
    overflow: hidden;
}

/* Pinterest Banner - Navigation Cards */
.pinterest-banner {
    width: 100%;
    background: rgba(255,255,255,0.5);
    padding: 2rem 0;
    border-bottom: 2px solid var(--orange);
}

.pinterest-track {
    display: flex;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
    padding: 0 1rem;
}

.pinterest-pin {
    position: relative;
    flex: 1;
    max-width: 450px;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
    cursor: pointer;
    text-decoration: none;
}

.pinterest-pin:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

.pinterest-pin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.pinterest-pin:hover img {
    transform: scale(1.05);
}

.nav-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(99, 0, 49, 0.95), rgba(99, 0, 49, 0.7), transparent);
    padding: 1.5rem 1rem 1rem;
    color: white;
    text-align: center;
}

.nav-card-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--maroon);
    text-shadow: none;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    opacity: 0.8;
}

.social-links {
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--orange);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 119, 34, 0.4);
}

.mission {
    max-width: 700px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--maroon);
    border-radius: 10px;
    color: var(--text-light);
}

.mission h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--orange);
}

/* COUNTDOWN */
.countdown-container {
    margin: 3rem auto;
    max-width: 600px;
    background: var(--maroon);
    padding: 2rem;
    border-radius: 10px;
    color: var(--text-light);
}

.countdown-container h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--orange);
}

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

.time-box {
    background: rgba(74, 0, 36, 0.5);
    padding: 1.5rem;
    border-radius: 10px;
    min-width: 100px;
    border: 2px solid var(--orange);
}

.time {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--orange);
    font-family: 'Playfair Display', serif;
}

.label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.9;
    text-transform: uppercase;
}

/* HOKIES EVENTS SECTION */
.hokies-events-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--maroon);
    border-radius: 10px;
    overflow: visible;
}

.hokies-events-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--orange);
    text-align: center;
}

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

.event-card {
    background: rgba(74, 0, 36, 0.5);
    border: 2px solid var(--orange);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 120px;
    align-items: flex-start;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.event-date-badge {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--orange);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.event-month {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.event-day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 0.2rem;
}

.event-details {
    flex: 1;
}

.event-details h3 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.event-time,
.event-location,
.event-description {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.9;
    margin: 0.25rem 0;
}

.event-description {
    margin-top: 0.5rem;
    line-height: 1.4;
}

.event-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.event-link:hover {
    opacity: 0.8;
}

/* SHOP PAGE */
.shop-tabs {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    border-bottom: 2px solid var(--maroon);
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--orange);
}

.tab-btn.active {
    color: var(--maroon);
    border-bottom-color: var(--orange);
}

.tab-content {
    display: none;
    padding: 2rem 0;
}

.tab-content.active {
    display: block;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.item-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.item-image {
    width: 100%;
    height: 300px;
    background: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--maroon);
    font-weight: 600;
}

.placeholder {
    font-size: 1.2rem;
}

.item-details {
    padding: 1.5rem;
}

.item-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--maroon);
}

.item-description {
    color: #666;
    margin-bottom: 1rem;
}

.item-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--orange);
    margin-bottom: 1rem;
}

.upcoming-info {
    text-align: center;
    padding: 4rem 2rem;
}

.upcoming-info h2 {
    font-size: 2.5rem;
    color: var(--maroon);
    margin-bottom: 1rem;
}

/* SELLER FORM */
.subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.seller-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--maroon);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--beige);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.form-group small {
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.85rem;
}

.estimate-result {
    background: var(--beige);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
    border: 3px solid var(--orange);
}

.estimate-result h3 {
    font-size: 1.5rem;
    color: var(--maroon);
    margin-bottom: 1rem;
}

.estimate-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--orange);
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.estimate-note {
    color: #666;
    font-size: 0.9rem;
}

.submission-success {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.submission-success h2 {
    font-size: 2.5rem;
    color: var(--maroon);
    margin-bottom: 1rem;
}

/* BROWSE PAGE */
.search-filters {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.search-filters input,
.search-filters select {
    padding: 0.75rem;
    border: 2px solid var(--beige);
    border-radius: 5px;
    font-size: 1rem;
}

.search-filters input {
    flex: 1;
    min-width: 200px;
}

.marketplace-results {
    margin-top: 2rem;
}

.info-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid var(--orange);
    margin-bottom: 2rem;
}

.info-box h3 {
    font-size: 1.5rem;
    color: var(--maroon);
    margin-bottom: 1rem;
}

.info-box .note {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--beige);
    border-radius: 5px;
}

/* BUTTONS */
.btn-primary {
    background: var(--orange);
    color: var(--text-light);
    padding: 0.85rem 2.5rem;
    border: 2px solid var(--orange);
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Crimson Text', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: transparent;
    color: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.btn-large {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

.btn-secondary {
    background: transparent;
    color: var(--maroon);
    padding: 0.85rem 2.5rem;
    border: 2px solid var(--maroon);
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Crimson Text', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--maroon);
    color: var(--text-light);
}

/* FOOTER */
footer {
    background: var(--maroon);
    color: var(--text-light);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--orange);
}

.footer-section a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--maroon);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }

    .nav-links.active {
        max-height: 300px;
    }

    .nav-links a {
        padding: 1rem;
        border-radius: 0;
    }

    .pinterest-track {
        flex-wrap: wrap;
    }

    .pinterest-pin {
        min-width: 160px;
        height: 260px;
    }

    .nav-card-overlay h3 {
        font-size: 1rem;
    }

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

    .countdown {
        gap: 0.5rem;
    }

    .time-box {
        min-width: 70px;
        padding: 1rem;
    }

    .time {
        font-size: 1.8rem;
    }

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

    .search-filters {
        flex-direction: column;
    }

    .search-filters input,
    .search-filters select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo span {
        font-size: 1rem;
    }

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

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

/* ==========================================
   DROP MANAGEMENT - FRONTEND STYLES
   ========================================== */

/* Upcoming Drops Countdown Cards */
.upcoming-drop-card {
    background: rgba(74, 0, 36, 0.5);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--orange);
    margin-bottom: 2rem;
}

.upcoming-drop-card h3 {
    font-size: 2rem;
    color: var(--orange);
    margin-bottom: 0.5rem;
}

.drop-desc {
    color: var(--text-light);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.drop-date {
    color: var(--text-light);
    opacity: 0.8;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.no-upcoming-drops {
    text-align: center;
    padding: 3rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.drop-live-now {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    border: 2px solid var(--success);
    margin-bottom: 2rem;
}

.drop-live-now h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.live-badge {
    display: inline-block;
    background: var(--orange);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Drop Headers in Shop */
.drop-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 3px solid var(--orange);
    margin-bottom: 2rem;
}

.drop-name {
    font-size: 2.5rem;
    color: var(--maroon);
    margin-bottom: 0.5rem;
}

.drop-description {
    color: #666;
    margin-bottom: 1rem;
}

/* Upcoming Drops Preview Tab */
.upcoming-drop-preview {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.drop-preview-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.drop-preview-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.drop-preview-info {
    padding: 2rem;
}

.drop-preview-info h3 {
    font-size: 2rem;
    color: var(--maroon);
    margin-bottom: 1rem;
}

.drop-preview-info .drop-stats {
    color: #666;
    margin: 0.5rem 0;
}

.drop-schedule {
    font-weight: 600;
    color: var(--orange);
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .upcoming-drop-preview {
        grid-template-columns: 1fr;
    }

    .drop-preview-images {
        height: 200px;
    }

    .drop-header {
        padding: 1.5rem 0;
    }

    .drop-name {
        font-size: 2rem;
    }

    .upcoming-drop-card h3 {
        font-size: 1.5rem;
    }
}

/* ==============================
   EBAY INTEGRATION STYLES
   ============================== */

/* Browse page controls */
.browse-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.browse-controls select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-beige);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.browse-controls select:hover {
    border-color: var(--orange);
}

/* eBay listing cards */
.ebay-listing-card {
    background: white;
    border: 2px solid var(--light-beige);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.ebay-listing-card:hover {
    border-color: var(--orange);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.ebay-listing-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #f5f5f5;
}

.ebay-listing-card h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--maroon);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    min-height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ebay-listing-card .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--orange);
    margin: 0.5rem 0;
}

.ebay-listing-card .condition {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.ebay-listing-card .btn-primary {
    margin-top: auto;
    text-align: center;
    text-decoration: none;
    display: block;
}

/* Affiliate notice */
.affiliate-notice {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    margin-top: 3rem;
    font-style: italic;
}

/* Loading state */
.ebay-loading {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--maroon);
    font-size: 1.2rem;
    grid-column: 1 / -1;
}

/* Error state */
.ebay-error {
    background: #fee;
    border: 2px solid #c33;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: #721c24;
    grid-column: 1 / -1;
}

.ebay-error h3 {
    color: #721c24;
    margin-bottom: 1rem;
}

.ebay-error .btn-primary {
    margin-top: 1rem;
    display: inline-block;
}

/* Mobile responsive adjustments for eBay */
@media (max-width: 768px) {
    .browse-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .browse-controls button,
    .browse-controls select {
        width: 100%;
    }

    .ebay-listing-card h3 {
        font-size: 1.2rem;
        min-height: 2.4em;
    }

    .ebay-listing-card img {
        height: 200px;
    }
}

/* Google Maps Autocomplete - Hide error overlays that block input */
.dismissible-error-overlay,
.gm-err-container,
.gm-style-iw-c {
    display: none !important;
    pointer-events: none !important;
}

/* Ensure Google Places autocomplete dropdown is visible and styled */
.pac-container {
    background-color: white;
    border: 2px solid var(--light-beige);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
    z-index: 10000 !important;
}

.pac-item {
    padding: 10px 12px;
    cursor: pointer;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover {
    background-color: var(--light-beige);
}

.pac-item-selected {
    background-color: var(--light-beige);
}

.pac-matched {
    font-weight: 600;
    color: var(--maroon);
}

.pac-icon {
    margin-right: 8px;
}

/* Prevent input from being greyed out by Google Maps errors */
#shipping-street {
    background-color: white !important;
    pointer-events: auto !important;
    opacity: 1 !important;
}
