/* ============================================
   Bink2B - Main Stylesheet
   ============================================ */

:root {
    --primary: #FF5A5F;
    --primary-dark: #E0484D;
    --secondary: #00A699;
    --dark: #222222;
    --gray-100: #F7F7F7;
    --gray-200: #EBEBEB;
    --gray-300: #DDDDDD;
    --gray-400: #B0B0B0;
    --gray-500: #717171;
    --gray-600: #5E5E5E;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
}

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

body {
    font-family: var(--font-family);
    color: var(--dark);
    background-color: white;
    -webkit-font-smoothing: antialiased;
}

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

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

/* ============================================
   Navbar
   ============================================ */
.navbar {
    height: 76px;
    border-bottom: 1px solid var(--gray-200) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-600) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 30px;
    transition: all 0.2s;
}

.nav-link:hover {
    background-color: var(--gray-100);
    color: var(--dark) !important;
}

.avatar-circle-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><circle cx="100" cy="100" r="80" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    background-size: 200px 200px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
}

.hero-search {
    background: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.hero-search .form-control {
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    background: transparent;
}

.hero-search .form-control:focus {
    box-shadow: none;
}

.hero-search .btn {
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-section {
        min-height: 400px;
    }
}

/* ============================================
   Cards
   ============================================ */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.25rem;
}

.room-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    background: white;
}

.room-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.room-card .room-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.room-card .room-image .price-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.room-card .card-body {
    padding: 1rem;
}

.room-card .room-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-card .room-location {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 90, 95, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: #008b82;
    border-color: #008b82;
}

/* ============================================
   Formulários
   ============================================ */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--dark);
    box-shadow: 0 0 0 2px rgba(34, 34, 34, 0.1);
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.input-group-text {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
}

/* ============================================
   Shop Card
   ============================================ */
.shop-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    background: white;
}

.shop-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.shop-card .shop-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    margin-top: -30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.shop-card .shop-name {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ============================================
   Dashboard
   ============================================ */
.stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s;
}

.stat-card:hover {
    box-shadow: var(--shadow);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Sidebar */
.sidebar {
    background: white;
    border-right: 1px solid var(--gray-200);
    min-height: calc(100vh - 76px);
    padding: 1.5rem 0;
}

.sidebar .nav-link {
    padding: 0.75rem 1.5rem !important;
    border-radius: 0;
    color: var(--gray-600) !important;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover {
    background: var(--gray-100);
    color: var(--dark) !important;
}

.sidebar .nav-link.active {
    background: var(--gray-100);
    color: var(--primary) !important;
    border-left-color: var(--primary);
    font-weight: 600;
}

/* ============================================
   Página de Detalhes do Quarto
   ============================================ */
.room-gallery {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.room-gallery .main-image {
    height: 400px;
    background-size: cover;
    background-position: center;
}

.room-gallery .gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.room-gallery .gallery-thumbs > div {
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.booking-card {
    position: sticky;
    top: 100px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.booking-card .price-display {
    font-size: 1.5rem;
    font-weight: 700;
}

.booking-card .price-display small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gray-500);
}

.amenities-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.amenity-item i {
    width: 20px;
    color: var(--secondary);
}

/* ============================================
   Calendário de Disponibilidade
   ============================================ */
.calendar-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.fc-day-available {
    background-color: #d4edda !important;
    cursor: pointer;
}

.fc-day-unavailable {
    background-color: #f8d7da !important;
    cursor: not-allowed;
}

.fc-day-booked {
    background-color: #fff3cd !important;
    cursor: not-allowed;
}

/* ============================================
   Status Badges
   ============================================ */
.badge-status {
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.8rem;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

.badge-confirmed, .badge-active {
    background: #d4edda;
    color: #155724;
}

.badge-cancelled, .badge-inactive {
    background: #f8d7da;
    color: #721c24;
}

.badge-completed {
    background: #cce5ff;
    color: #004085;
}

/* ============================================
   Auth Pages
   ============================================ */
.auth-section {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.auth-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 2.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.auth-card .auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-card .auth-subtitle {
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.social-login {
    display: flex;
    gap: 10px;
}

.social-login .btn {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: white;
    transition: all 0.2s;
}

.social-login .btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--gray-500);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-200);
}

.divider::before {
    margin-right: 1rem;
}

.divider::after {
    margin-left: 1rem;
}

/* ============================================
   Search Page
   ============================================ */
.search-filters {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.search-result-count {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .room-gallery .main-image {
        height: 250px;
    }
    
    .room-gallery .gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .room-gallery .gallery-thumbs > div {
        height: 80px;
    }
    
    .amenities-list {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        border: none;
        box-shadow: none;
        padding: 1.5rem;
    }
    
    .stat-card .stat-number {
        font-size: 1.5rem;
    }
}

/* ============================================
   Utilities
   ============================================ */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.rounded-12 {
    border-radius: var(--radius) !important;
}

.rounded-16 {
    border-radius: var(--radius-lg) !important;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-hover);
}

.cursor-pointer {
    cursor: pointer;
}

/* Placeholder image */
.bg-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-500);
}
