/**
 * THEME.CSS - Default Theme Styles
 * Component-specific styles for modular theme system
 * Extends frontend.css base styles
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Container */
    --container-max-width: 1280px;
    
    /* Colors - Will be overridden by theme settings */
    --color-primary: var(--primary, #F75700);
    --color-text: #1f2937;
    --color-text-secondary: #6b7280;
    --color-text-muted: #9ca3af;
    --color-bg: #ffffff;
    --color-bg-secondary: #f9fafb;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;
    --color-border-dark: #d1d5db;
    --color-success: #10b981;
    --color-danger: #ef4444;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Z-index */
    --z-sticky: 1000;
    --z-modal: 9999;
    
    /* Font sizes */
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    
    /* Gray scale */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-sm);
}

.site-nav {
    max-width: var(--container-max-width, 1280px);
    margin: 0 auto;
    display: flex;
    gap: var(--space-6);
    align-items: center;
    padding: var(--space-4);
}

.site-brand {
    font-weight: 800;
    font-size: var(--font-size-xl);
    color: var(--primary);
    text-decoration: none;
}

.site-nav__menu {
    display: flex;
    gap: var(--space-6);
    align-items: center;
}

.site-nav__link {
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    transition: color var(--transition-base);
}

.site-nav__link:hover,
.site-nav__link.active {
    color: var(--primary);
}

.site-nav__spacer {
    flex: 1;
}

@media (max-width: 767px) {
    .site-nav {
        gap: var(--space-4);
    }
    
    .site-nav__link {
        font-size: var(--font-size-sm);
    }
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.site-footer {
    border-top: 1px solid var(--gray-200);
    margin-top: var(--space-10);
    background: white;
}

.site-footer__content {
    max-width: var(--container-max-width, 1280px);
    margin: 0 auto;
    padding: var(--space-5);
    text-align: center;
}

.site-footer__text {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    margin: 0;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.site-main {
    max-width: var(--container-max-width, 1280px);
    margin: 0 auto;
    padding: var(--space-5) var(--space-4);
    min-height: calc(100vh - 200px);
}

/* ============================================
   TOUR CARD COMPONENT
   ============================================ */
.tour-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tour-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.tour-card__image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--gray-100);
}

.tour-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.tour-card__content {
    padding: var(--space-5);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tour-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.tour-card__title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
    margin: 0 0 var(--space-3);
    line-height: var(--line-height-tight);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tour-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-4);
}

.tour-card__meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.tour-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--gray-100);
}

.tour-card__price-label {
    font-size: var(--font-size-xs);
    color: var(--gray-600);
    display: block;
    margin-bottom: var(--space-1);
}

.tour-card__price-amount {
    display: flex;
    align-items: baseline;
    gap: var(--space-1);
}

.tour-card__price-amount .amount {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--primary);
}

.tour-card__price-amount .currency {
    font-size: var(--font-size-sm);
    color: var(--gray-700);
}

/* Compact variant */
.tour-card--compact .tour-card__image {
    height: 160px;
}

.tour-card--compact .tour-card__content {
    padding: var(--space-4);
}

/* ============================================
   HOTEL CARD COMPONENT
   ============================================ */
.hotel-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hotel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.hotel-card__image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--gray-100);
    position: relative;
}

.hotel-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotel-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.hotel-card__content {
    padding: var(--space-5);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hotel-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.hotel-card__badges .badge-star {
    background: #fbbf24;
    color: white;
}

.hotel-card__badges .stars {
    font-size: var(--font-size-sm);
}

.hotel-card__title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
    margin: 0 0 var(--space-3);
    line-height: var(--line-height-tight);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hotel-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-3);
}

.hotel-card__meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.hotel-card__description {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    margin: 0 0 var(--space-4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hotel-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--gray-100);
}

.hotel-card__check-in {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--font-size-xs);
    color: var(--gray-600);
}

/* ============================================
   PAGE HEADER COMPONENT
   ============================================ */
.page-header {
    color: white;
    padding: 3rem 1rem;
    margin: calc(var(--space-5) * -1) calc(var(--space-4) * -1) var(--space-8);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><path d="M50 0L100 50L50 100L0 50z" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.page-header--gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.page-header--gradient-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
}

.page-header--gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

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

.page-header__title {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 var(--space-4);
    line-height: 1.2;
}

.page-header__subtitle {
    font-size: var(--font-size-lg);
    opacity: 0.95;
    margin: 0 0 var(--space-6);
}

.page-header__buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .page-header__title {
        font-size: 1.75rem;
    }
    
    .page-header__subtitle {
        font-size: var(--font-size-base);
    }
}

/* ============================================
   FILTER BAR COMPONENT
   ============================================ */
.filter-bar {
    background: white;
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-6);
}

.filter-bar__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .filter-bar__grid {
        grid-template-columns: 2fr 1fr 1fr auto;
    }
}

.filter-input {
    padding: var(--space-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    width: 100%;
    min-height: 44px;
    font-family: var(--font-sans);
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 247, 87, 0), 0.1);
}

/* ============================================
   FEATURE CARD COMPONENT
   ============================================ */
.feature-card {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-slow);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.feature-card__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    color: white;
}

.feature-card--secondary .feature-card__icon {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
}

.feature-card--success .feature-card__icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.feature-card--warning .feature-card__icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.feature-card__title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 var(--space-2);
}

.feature-card__description {
    color: var(--gray-600);
    margin: 0;
    font-size: var(--font-size-sm);
}
