/**
 * Tobacco Vape and More - Main Stylesheet
 * Clean, modern design with responsive layout
 */

/* ============================================
   CSS Variables
============================================ */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --accent-hover: #ff6b6b;
    --text-color: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 30px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

ul, ol {
    list-style: none;
}

/* ============================================
   Typography
============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

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

section {
    padding: 60px 0;
}

/* ============================================
   Buttons
============================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--text-white);
}

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

.btn-danger {
    background: #dc3545;
    color: var(--text-white);
}

.btn-danger:hover {
    background: #c82333;
    color: var(--text-white);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============================================
   Header
============================================ */
.site-header {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
}

.logo h1 {
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 700;
}

.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    color: var(--text-white);
    font-weight: 500;
    opacity: 0.9;
}

.main-nav a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.phone-link {
    background: var(--accent-color);
    padding: 8px 16px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-link:hover {
    background: var(--accent-hover);
    color: var(--text-white);
}

.phone-icon {
    font-size: 1.1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-white);
    transition: var(--transition);
}

/* ============================================
   Hero Section & Carousel
============================================ */
.hero-section {
    position: relative;
    min-height: 500px;
    background: var(--secondary-color);
    overflow: hidden;
}

.hero-placeholder {
    min-height: 500px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-placeholder .hero-content {
    text-align: center;
    color: var(--text-white);
}

.hero-placeholder h2 {
    color: var(--text-white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-placeholder p {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    height: 500px;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-white);
    border: none;
    padding: 15px 20px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--text-white);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dots .dot.active,
.carousel-dots .dot:hover {
    background: var(--text-white);
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 60px 0 40px;
    z-index: 5;
}

.hero-text {
    color: var(--text-white);
    background: rgba(0, 0, 0, 0.65);
    padding: 40px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: inline-block;
}

.hero-text h2 {
    color: var(--text-white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.store-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.store-status .status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.store-status.open .status-indicator {
    background: #28a745;
    box-shadow: 0 0 8px #28a745;
}

.store-status.closed .status-indicator {
    background: #dc3545;
}

.today-hours {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ============================================
   About Section
============================================ */
.about-section {
    background: var(--bg-light);
}

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

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-text h3 {
    margin: 1.5rem 0 1rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.features-list li {
    padding: 10px 15px;
    background: var(--bg-white);
    border-radius: var(--radius);
    border-left: 3px solid var(--accent-color);
}

/* ============================================
   Hours Section
============================================ */
.hours-section {
    background: var(--bg-white);
}

.hours-grid {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 25px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row.today {
    background: var(--accent-color);
    color: var(--text-white);
}

.hours-row .day {
    font-weight: 500;
}

.hours-row .time {
    color: var(--text-light);
}

.hours-row.today .time {
    color: var(--text-white);
    opacity: 0.9;
}

.hours-info {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: center;
}

.hours-info h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.hours-info p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.location-details {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin: 30px 0;
}

.location-details h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.location-details h4 {
    margin: 20px 0 10px;
    color: var(--primary-color);
}

.location-details p {
    color: var(--text-light);
    line-height: 1.8;
}

.areas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.areas-list li {
    background: var(--bg-white);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text-color);
    box-shadow: var(--shadow);
}

/* ============================================
   Location Section
============================================ */
.location-section {
    background: var(--bg-light);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.info-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.phone-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

.contact-note {
    margin-top: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    display: block;
}

/* ============================================
   Footer
============================================ */
.site-footer {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-white);
    margin-bottom: 15px;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-section a {
    color: var(--text-white);
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-section ul li {
    margin-bottom: 8px;
}

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

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.age-notice {
    margin-top: 10px;
    font-weight: 500;
    color: var(--accent-color);
}

/* ============================================
   Page Header (for individual pages)
============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-white);
    padding: 60px 0;
    text-align: center;
}

.page-title {
    color: var(--text-white);
    font-size: 2.5rem;
    margin: 0;
}

/* ============================================
   Quick Links Section (Homepage)
============================================ */
.quick-links-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.quick-link-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-color);
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: var(--text-color);
}

.quick-link-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.quick-link-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.quick-link-card p {
    color: var(--text-light);
    margin: 0;
}

/* ============================================
   Hours CTA
============================================ */
.hours-cta {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.hours-cta p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.store-status-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.store-status-large .status-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.store-status-large.open .status-indicator {
    background: #28a745;
}

.store-status-large.closed .status-indicator {
    background: #dc3545;
}

.store-status-large .status-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* ============================================
   Responsive - Quick Links
============================================ */
@media (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .quick-link-card {
        padding: 30px 20px;
    }

    .page-header {
        padding: 40px 0;
    }

    .page-title {
        font-size: 2rem;
    }
}

/* ============================================
   Admin Styles
============================================ */
.admin-page {
    background: var(--bg-light);
    min-height: 100vh;
}

/* Admin Login */
.admin-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h1 {
    margin-bottom: 5px;
}

.login-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
}

.login-form {
    text-align: left;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Admin Container */
.admin-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
    padding: 20px 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.admin-header h1 {
    font-size: 1.5rem;
}

.admin-nav {
    display: flex;
    gap: 20px;
}

.admin-nav a {
    color: var(--text-color);
}

.logout-btn {
    color: var(--accent-color) !important;
}

/* Admin Sections */
.admin-section {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.admin-section h2 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.admin-section h3 {
    margin: 25px 0 15px;
    font-size: 1.1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.hours-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

/* Carousel Admin Grid */
.carousel-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.carousel-admin-item {
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.carousel-admin-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.carousel-item-info {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-order {
    font-weight: 600;
    color: var(--text-light);
}

.no-images {
    color: var(--text-light);
    font-style: italic;
}

.upload-form {
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-weight: 500;
}

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

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

/* ============================================
   Responsive Design
============================================ */
@media (max-width: 992px) {
    .location-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    section {
        padding: 40px 0;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow);
    }

    .main-nav.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile Carousel Improvements */
    .hero-section {
        min-height: 400px;
    }

    .carousel {
        height: 400px;
    }

    .carousel-slide img {
        object-position: center center;
    }

    .hero-placeholder {
        min-height: 400px;
    }

    .hero-placeholder h2 {
        font-size: 2rem;
    }

    /* Hero overlay - minimal on mobile to show carousel */
    .hero-overlay {
        background: linear-gradient(transparent 0%, rgba(0,0,0,0.7) 100%);
        padding: 15px 0 10px;
    }

    .hero-text {
        padding: 12px 15px;
        margin: 0 10px;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .hero-text h2 {
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    /* Hide tagline on mobile */
    .tagline {
        display: none;
    }

    /* Compact store status on mobile */
    .store-status {
        padding: 5px 10px;
        font-size: 0.8rem;
        margin-bottom: 8px;
        margin-top: 5px;
    }

    .today-hours {
        font-size: 0.75rem;
    }

    .hero-text .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* Larger touch targets for carousel buttons */
    .carousel-btn {
        padding: 12px 15px;
        font-size: 1.2rem;
        background: rgba(0, 0, 0, 0.4);
    }

    .carousel-btn.prev {
        left: 5px;
    }

    .carousel-btn.next {
        right: 5px;
    }

    /* Dots at top on mobile */
    .carousel-dots {
        bottom: auto;
        top: 10px;
    }

    .carousel-dots .dot {
        width: 10px;
        height: 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Small phone carousel */
    .hero-section {
        min-height: 350px;
    }

    .carousel {
        height: 350px;
    }

    .hero-placeholder {
        min-height: 350px;
    }

    .hero-text {
        padding: 10px 12px;
    }

    .hero-text h2 {
        font-size: 1rem;
    }

    .store-status {
        flex-direction: column;
        gap: 2px;
        padding: 5px 8px;
        font-size: 0.75rem;
    }

    .store-status .status-indicator {
        width: 8px;
        height: 8px;
    }

    .hero-text .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .carousel-btn {
        padding: 10px 12px;
        font-size: 1rem;
    }

    .hours-row {
        padding: 12px 15px;
    }

    .admin-section {
        padding: 20px;
    }

    .login-box {
        padding: 30px 20px;
    }
}
