/* css/style.css - Main Stylesheet for SpaceEasy */

/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: "Inter", system-ui, -apple-system, sans-serif; background: #f8fafc; color: #0b1a2b; line-height: 1.5; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* ===== Navbar ===== */
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; flex-wrap: wrap; border-bottom: 1px solid rgba(0, 0, 0, 0.04); }

.logo-area { display: flex; align-items: center; gap: 10px; }

.logo-icon { background: #0b1a2b; color: white; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; letter-spacing: -0.5px; }

.logo-text { font-weight: 700; font-size: 24px; letter-spacing: -0.6px; color: #0b1a2b; }
.logo-text span { color: #2a7de1; }

.nav-links { display: flex; align-items: center; gap: 30px; font-weight: 500; font-size: 15px; color: #1f2a3a; }
.nav-links a { text-decoration: none; color: #1f2a3a; transition: 0.2s; display: flex; align-items: center; gap: 6px; }
.nav-links a:hover { color: #2a7de1; }

.nav-actions { display: flex; align-items: center; gap: 16px; }

/* ===== Buttons ===== */
.btn-outline { background: transparent; border: 1.5px solid #d0d8e3; padding: 10px 20px; border-radius: 60px; font-weight: 600; font-size: 14px; color: #1f2a3a; transition: 0.2s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-outline:hover { border-color: #2a7de1; color: #2a7de1; }

.btn-primary { background: #2a7de1; border: none; padding: 10px 24px; border-radius: 60px; font-weight: 600; font-size: 14px; color: white; transition: 0.2s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; box-shadow: 0 6px 14px rgba(42, 125, 225, 0.25); }
.btn-primary:hover { background: #1a5fb0; transform: translateY(-1px); box-shadow: 0 10px 20px rgba(42, 125, 225, 0.3); }
.btn-primary i { margin-right: 4px; }

/* ===== Hero ===== */
.hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 40px 0 30px; gap: 40px; }

.hero-left { flex: 1 1 480px; }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: #e8eff9; padding: 8px 18px 8px 12px; border-radius: 60px; font-size: 14px; font-weight: 500; color: #0b1a2b; margin-bottom: 24px; }
.hero-badge i { color: #2a7de1; font-size: 16px; }

.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; letter-spacing: -1.5px; line-height: 1.1; color: #0b1a2b; margin-bottom: 18px; }
.hero h1 i { color: #2a7de1; font-style: normal; }

.hero-desc { font-size: 1.2rem; color: #3d4e62; max-width: 550px; margin-bottom: 32px; font-weight: 400; line-height: 1.6; }

.search-box { background: white; border-radius: 80px; padding: 8px 8px 8px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; box-shadow: 0 18px 40px -12px rgba(0, 20, 40, 0.2); max-width: 600px; border: 1px solid rgba(0,0,0,0.02); }
.search-box i { color: #7a8a9e; font-size: 18px; }
.search-box input { border: none; padding: 16px 10px; font-size: 16px; flex: 1; min-width: 160px; outline: none; background: transparent; font-weight: 450; color: #0b1a2b; }
.search-box input::placeholder { color: #9aabbf; font-weight: 400; }
.search-box .btn-primary { padding: 14px 30px; border-radius: 60px; font-size: 15px; background: #0b1a2b; box-shadow: 0 8px 18px rgba(11, 26, 43, 0.15); border: none; cursor: pointer; }
.search-box .btn-primary:hover { background: #1f2a3a; }

.hero-stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.stat-item { display: flex; align-items: center; gap: 10px; }
.stat-number { font-weight: 700; font-size: 1.8rem; color: #0b1a2b; letter-spacing: -0.5px; }
.stat-label { color: #4d6278; font-weight: 450; font-size: 0.95rem; }

.hero-right { flex: 1 1 420px; position: relative; border-radius: 40px; overflow: hidden; box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.12); min-height: 340px; background: #eef2f7; }
.hero-right img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.hero-right:hover img { transform: scale(1.02); }

.hero-card-overlay { position: absolute; bottom: 20px; left: 20px; right: 20px; background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 28px; padding: 18px 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); border: 1px solid rgba(255,255,255,0.5); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.hero-card-overlay .badge { background: #0b1a2b; color: white; font-size: 0.7rem; font-weight: 600; padding: 4px 12px; border-radius: 40px; }
.hero-card-overlay .price { font-weight: 700; font-size: 1.3rem; color: #0b1a2b; }
.hero-card-overlay .price small { font-weight: 400; font-size: 0.8rem; color: #4d6278; }
.hero-card-overlay .feature-tags { display: flex; gap: 12px; color: #2a3e55; font-size: 0.8rem; }
.hero-card-overlay .feature-tags i { color: #2a7de1; margin-right: 4px; }

/* ===== Sections ===== */
.section-title { font-size: 2rem; font-weight: 700; letter-spacing: -0.8px; margin: 50px 0 12px; color: #0b1a2b; }
.section-sub { color: #4d6278; font-size: 1.1rem; max-width: 600px; margin-bottom: 28px; }

.img-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin: 20px 0 24px; }
.img-grid-item { border-radius: 32px; overflow: hidden; position: relative; height: 180px; box-shadow: 0 6px 20px rgba(0,0,0,0.04); transition: 0.25s ease; cursor: default; }
.img-grid-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.img-grid-item:hover img { transform: scale(1.06); }
.img-grid-item .label { position: absolute; bottom: 16px; left: 16px; background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); color: white; font-weight: 600; font-size: 0.9rem; padding: 6px 18px; border-radius: 60px; letter-spacing: 0.2px; border: 1px solid rgba(255,255,255,0.15); }

.pill-group { display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 20px 0 30px; }
.pill { background: white; border-radius: 60px; padding: 10px 24px; font-weight: 500; font-size: 0.95rem; box-shadow: 0 2px 8px rgba(0,0,0,0.02); border: 1px solid #e6edf5; display: inline-flex; align-items: center; gap: 10px; transition: 0.15s; cursor: default; }
.pill i { color: #2a7de1; font-size: 1rem; }
.pill:hover { border-color: #2a7de1; background: #f6faff; }

.cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin: 28px 0 20px; }
.how-card { background: white; border-radius: 32px; padding: 28px 18px; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,0.02); border: 1px solid #eef4fa; transition: 0.2s; }
.how-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.04); }
.how-card .step { background: #0b1a2b; color: white; width: 40px; height: 40px; border-radius: 60px; display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 16px; }
.how-card h4 { font-weight: 650; margin-bottom: 6px; }
.how-card p { font-size: 0.9rem; color: #4d6278; }

/* ===== Owner CTA ===== */
.owner-cta { border-radius: 48px; overflow: hidden; position: relative; margin: 40px 0 20px; min-height: 200px; background: #0b1a2b; display: flex; align-items: center; padding: 34px 40px; }
.owner-cta img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.25; z-index: 0; }
.owner-cta-content { position: relative; z-index: 2; color: white; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; width: 100%; gap: 20px; }
.owner-cta-content h3 { font-weight: 700; font-size: 1.8rem; margin-bottom: 6px; }
.owner-cta-content p { color: #b8ccdd; max-width: 460px; }
.owner-cta-content .badge-owner { background: #2a7de1; padding: 4px 14px; border-radius: 40px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.3px; display: inline-block; margin-bottom: 10px; }
.owner-cta .btn-group { display: flex; gap: 12px; flex-wrap: wrap; }
.owner-cta .btn-white { background: white; color: #0b1a2b; padding: 12px 28px; border-radius: 60px; font-weight: 600; border: none; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.owner-cta .btn-white:hover { background: #f0f4f9; }
.owner-cta .btn-outline-light { background: transparent; border: 1px solid rgba(255,255,255,0.3); padding: 12px 28px; border-radius: 60px; font-weight: 500; color: white; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.owner-cta .btn-outline-light:hover { background: rgba(255,255,255,0.05); }

/* ===== Footer ===== */
.footer { margin-top: 50px; border-top: 1px solid #e2eaf2; padding: 40px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; color: #3a4f66; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h5 { font-weight: 700; color: #0b1a2b; font-size: 1rem; }
.footer-col a { text-decoration: none; color: #4d6278; font-size: 0.9rem; }
.footer-col a:hover { color: #2a7de1; }
.footer-bottom { width: 100%; text-align: center; font-size: 0.85rem; color: #7a8fa5; border-top: 1px solid #e2eaf2; padding-top: 24px; margin-top: 12px; }

/* ===== Responsive ===== */
@media (max-width: 850px) {
    .navbar { flex-direction: column; align-items: stretch; gap: 14px; }
    .nav-links { flex-wrap: wrap; gap: 16px 24px; justify-content: center; }
    .nav-actions { justify-content: center; flex-wrap: wrap; }
    .search-box { border-radius: 40px; padding: 6px 6px 6px 20px; }
    .search-box input { padding: 12px 6px; min-width: 120px; font-size: 15px; }
    .hero { padding: 20px 0; }
    .hero-stats { gap: 20px; }
    .hero-right { min-height: 260px; }
    .hero-card-overlay { flex-direction: column; align-items: flex-start; gap: 8px; bottom: 12px; left: 12px; right: 12px; padding: 14px 16px; }
    .owner-cta { padding: 28px 24px; min-height: 160px; }
    .owner-cta-content { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 2.2rem; }
    .search-box { flex-direction: column; align-items: stretch; background: transparent; box-shadow: none; padding: 0; gap: 10px; border: none; }
    .search-box input { background: white; border-radius: 60px; padding: 16px 22px; box-shadow: 0 6px 18px rgba(0,0,0,0.04); border: 1px solid #e2eaf2; }
    .search-box .btn-primary { width: 100%; justify-content: center; }
    .img-grid { grid-template-columns: 1fr 1fr; }
    .img-grid-item { height: 130px; }
    .nav-links { gap: 12px; font-size: 14px; }
    .btn-outline, .btn-primary { padding: 8px 16px; font-size: 13px; }
    .footer { flex-direction: column; gap: 24px; }
    .hero-card-overlay .price { font-size: 1.1rem; }
}
/* Add to existing CSS */

/* Dark Mode Support */
:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #0b1a2b;
    --text-secondary: #4d6278;
    --border-color: #eef4fa;
    --shadow: 0 4px 12px rgba(0,0,0,0.04);
}

[data-theme="dark"] {
    --bg-primary: #0a0e17;
    --bg-secondary: #141b2b;
    --text-primary: #e8edf5;
    --text-secondary: #8a9bb0;
    --border-color: #1f2a3a;
    --shadow: 0 4px 12px rgba(0,0,0,0.3);
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background 0.3s, color 0.3s;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 16px 24px;
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    animation: slideIn 0.3s ease;
    max-width: 400px;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.success { border-left: 4px solid #1a7d4a; }
.toast.error { border-left: 4px solid #b1412a; }
.toast.info { border-left: 4px solid #2a7de1; }
.toast.warning { border-left: 4px solid #f59e0b; }

.toast .icon { font-size: 20px; }
.toast.success .icon { color: #1a7d4a; }
.toast.error .icon { color: #b1412a; }
.toast.info .icon { color: #2a7de1; }
.toast.warning .icon { color: #f59e0b; }

.toast .close-btn {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-secondary);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: #2a7de1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--border-color) 25%, var(--bg-primary) 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Print Styles */
@media print {
    .navbar, .footer, .no-print { display: none !important; }
    .container { max-width: 100%; padding: 0; }
    .section { box-shadow: none; border: 1px solid #ddd; }
}