/* AuraBnb - Stylesheet */

:root {
    --bg-dark: #090d16;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --brand-color: #ff5a5f;
    --brand-hover: #ff3a40;
    --brand-gradient: linear-gradient(135deg, #ff5a5f 0%, #ec4899 100%);
    --glow-gradient: linear-gradient(135deg, rgba(255, 90, 95, 0.3) 0%, rgba(236, 72, 153, 0.3) 100%);
    --card-bg: rgba(15, 23, 42, 0.45);
    --card-border: rgba(255, 255, 255, 0.06);
    --focus-ring: rgba(255, 90, 95, 0.25);
    --success-color: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 60%),
                      radial-gradient(ellipse at 80% 20%, rgba(255, 90, 95, 0.07) 0%, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Animated Canvas - Particle Field */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
}

/* Background Glowing Orbs */
.background-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: orb-drift 20s ease-in-out infinite alternate;
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 90, 95, 0.35) 0%, transparent 70%);
    top: -5%;
    left: -8%;
    animation-duration: 22s;
}

.circle-2 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.28) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-duration: 28s;
    animation-direction: alternate-reverse;
}

.circle-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, transparent 70%);
    top: 40%;
    left: 45%;
    transform: translate(-50%, -50%);
    animation-duration: 18s;
}

/* Perspective Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, transparent 30%, black 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, transparent 30%, black 100%);
}

@keyframes orb-drift {
    0%   { transform: translate(0px, 0px) scale(1); }
    33%  { transform: translate(30px, -20px) scale(1.05); }
    66%  { transform: translate(-20px, 15px) scale(0.97); }
    100% { transform: translate(10px, 25px) scale(1.02); }
}

/* App Container */
.app-container {
    width: 100%;
    max-width: 1100px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Header */
header {
    text-align: center;
}

header .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

header .logo i {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-ai {
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    background: rgba(255, 90, 95, 0.1);
    border: 1px solid rgba(255, 90, 95, 0.3);
    color: var(--brand-color);
    vertical-align: middle;
    font-weight: 700;
    margin-left: 0.25rem;
    -webkit-text-fill-color: var(--brand-color); /* override logo transparency */
}

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

header .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.5;
}

/* Glass Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Styles */
#prediction-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 550px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.full-width {
    width: 100%;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group label i {
    color: var(--brand-color);
}

.input-group input, 
.input-group select {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-group input:focus, 
.input-group select:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.input-group select option {
    background-color: #0f172a;
    color: var(--text-primary);
}

.input-group select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.helper-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Keyword Badges Container */
.keyword-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: -0.5rem;
}

.badge {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.4s ease;
}

.badge i {
    transition: transform 0.4s ease;
}

/* Active Badge Glow States */
#badge-luxury.active {
    background: rgba(234, 179, 8, 0.12);
    border-color: rgba(234, 179, 8, 0.4);
    color: #facc15;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.2);
}

#badge-cozy.active {
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.4);
    color: #fb7185;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.2);
}

#badge-studio.active {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.4);
    color: #38bdf8;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

#badge-subway.active {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.badge.active i {
    transform: scale(1.15);
}

/* Predict Button */
.btn-predict {
    width: 100%;
    margin-top: 1rem;
    background: var(--brand-gradient);
    border: none;
    border-radius: 14px;
    padding: 1.1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.3s ease, filter 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 90, 95, 0.2);
}

.btn-predict:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 90, 95, 0.35);
    filter: brightness(1.05);
}

.btn-predict:active {
    transform: translateY(0);
}

.btn-loader {
    font-size: 1.1rem;
}

/* Results section styling */
.result-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Price Card Specially Designed */
.price-card {
    background: linear-gradient(135deg, rgba(255, 90, 95, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
    border-color: rgba(255, 90, 95, 0.25);
    text-align: center;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.price-card h3 {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.price-display {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.price-display .currency {
    font-size: 2rem;
    font-weight: 600;
    margin-right: 0.1rem;
    align-self: flex-start;
    margin-top: 0.5rem;
}

.price-display .per-night {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
    -webkit-text-fill-color: var(--text-secondary);
    margin-left: 0.4rem;
}

.price-disclaimer {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 320px;
    font-weight: 300;
}

/* Details Info Card */
.info-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-color);
}

.details-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.details-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.details-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    color: var(--text-secondary);
    font-weight: 400;
}

.detail-val {
    font-weight: 600;
    color: var(--text-primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0 1rem;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.85rem;
    font-weight: 300;
}

footer i {
    animation: pulse 1.5s infinite;
    display: inline-block;
}

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