/* Hot on Homes - Modern Bootstrap Template */

:root {
    --primary-red: #E63946;
    --primary-orange: #F77F00;
    --dark-blue: #003049;
    --light-blue: #669BBC;
    --dark-bg: #1a1a1a;
    --light-gray: #f8f9fa;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

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

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-red) !important;
}

/* Hero Section with Video */
.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(220,53,69,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Breaking News Bar */
.breaking-news {
    background: linear-gradient(90deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 12px 0;
    border-bottom: 3px solid var(--primary-red);
}

.news-ticker {
    overflow: hidden;
    white-space: nowrap;
    color: #fff;
    font-weight: 500;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Section Headers */
.section-header {
    position: relative;
    padding-bottom: 15px;
}

.header-line {
    height: 4px;
    width: 80px;
    background: var(--primary-red);
    margin-top: 10px;
}

/* Video Containers */
.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.video-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.video-badge .badge {
    font-size: 0.85rem;
    padding: 8px 12px;
}

/* Featured Spotlight */
.featured-spotlight {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.featured-video-card {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.featured-video-card:hover {
    transform: translateY(-5px);
}

/* Trending List */
.trending-item {
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.trending-item:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.02);
}

.thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.thumbnail-wrapper:hover .play-overlay {
    opacity: 1;
}

/* Community Cards */
.community-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.community-card:hover {
    box-shadow: 0 8px 25px rgba(220,53,69,0.2);
    transform: translateY(-5px);
}

.community-card .card-body {
    padding: 20px;
}

.community-card.main-feature .card-body {
    padding: 30px;
}

/* Builder Cards */
.builder-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.builder-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.logo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto;
}

/* Video Cards */
.video-card {
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

/* CTA Card */
.cta-card {
    background: #fff;
    border-radius: 20px;
    padding: 50px;
}

.bg-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Form Styling */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.input-group-text {
    background-color: var(--light-gray);
    border-color: #ced4da;
}

.btn-danger {
    background-color: #65a2aa !important;
    border-color: #65a2aa !important;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #558a91 !important;
    border-color: #558a91 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(101,162,170,0.3);
}

.btn-outline-danger:hover {
    background-color: #65a2aa !important;
    border-color: #65a2aa !important;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #848484 !important;
    color: #ffffff !important;
}

footer a {
    color: #ffffff !important;
}

footer a:hover {
    color: var(--primary-red) !important;
}

footer .text-muted {
    color: #ffffff !important;
}

.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--primary-red) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .cta-card {
        padding: 30px 20px;
    }

    .community-card.main-feature .card-body {
        padding: 20px;
    }

    .news-ticker {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .display-3 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .logo-placeholder {
        width: 100px;
        height: 100px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 1.2s ease-in;
}

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

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

/* Video hover effects */
video {
    transition: transform 0.3s ease;
}

.video-container:hover video {
    transform: scale(1.05);
}

/* Card hover effects */
.card-body a {
    text-decoration: none;
}

/* Ensure videos are responsive */
.ratio video,
.ratio iframe {
    border-radius: 8px;
}

/* Badge styling */
.badge {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c82333;
}
