/**
 * Mansion Raffle Custom Styles
 * Elegant styling for luxury property raffles
 */

/* Custom Variables */
:root {
    --primary-color: #2C3E50;
    --secondary-color: #E74C3C;
    --accent-color: #F39C12;
    --text-color: #2C3E50;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --hero-overlay: rgba(0,0,0,0.4);
}

/* Global Styles */
body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Header/Navigation */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    padding: 8px 15px !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--secondary-color);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Hero Section */
.min-vh-75 {
    min-height: 75vh;
}

.hero-raffle-container {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-overlay);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.1;
}

.property-value {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.value-label {
    font-weight: 400;
    opacity: 0.9;
}

.value-amount {
    font-weight: 700;
    color: #FFD700;
    font-size: 1.8rem;
}

.property-location {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.property-location i {
    margin-right: 8px;
    color: #FFD700;
}

.raffle-info {
    font-size: 1.1rem;
    line-height: 1.8;
}

.hero-actions {
    margin-top: 40px;
}

.hero-actions .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

.btn-outline-secondary {
    border: 2px solid rgba(255,255,255,0.8);
    color: white;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

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

.hero-image img {
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Active Raffles Grid */
.raffle-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    box-shadow: var(--shadow);
}

.raffle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-img-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.raffle-card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a:hover {
    color: var(--secondary-color);
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #6c757d;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Carousel Styles */
.multi-item-carousel {
    padding: 0 50px;
}

.raffle-carousel-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin: 15px;
    min-height: 600px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.raffle-carousel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.raffle-carousel-card .raffle-image {
    height: 300px;
    overflow: hidden;
}

.raffle-carousel-card .raffle-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
}

.raffle-carousel-card:hover .raffle-image img {
    transform: scale(1.05);
}

.raffle-carousel-card .raffle-content {
    padding: 25px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.raffle-carousel-card .raffle-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.raffle-carousel-card .raffle-value {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.raffle-carousel-card .raffle-value .text-primary {
    font-size: 1.4rem;
}

.raffle-carousel-card .raffle-description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #6c757d;
    flex-grow: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    opacity: 0.8;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.3);
    border: none;
}

.carousel-indicators .active {
    background-color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .hero-raffle-container {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .property-value {
        font-size: 1.3rem;
    }
    
    .value-amount {
        font-size: 1.5rem;
    }
    
    .hero-actions {
        text-align: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .card-img-container {
        height: 200px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .card-img-container {
        height: 180px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Property Gallery Styles */
.property-gallery-section {
    margin-bottom: 3rem;
}

.property-gallery-carousel {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.property-gallery-carousel .carousel-item {
    position: relative;
}

.gallery-main-image {
    height: 500px;
    object-fit: cover;
    width: 100%;
}

.carousel-caption {
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem 1rem;
    border-radius: 0 0 15px 15px;
}

.gallery-image-caption {
    font-size: 1rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 20px 20px;
    filter: invert(1);
}

.gallery-thumbnails {
    max-height: 200px;
    overflow-y: auto;
}

.gallery-thumb {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    border-radius: 8px;
    height: 80px;
    object-fit: cover;
}

.gallery-thumb:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.gallery-thumb.active {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* Single Raffle Page Enhancements */
.single-raffle-page .raffle-hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
}

.raffle-hero-image img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.property-value-large .value-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.property-location-large {
    font-size: 1.2rem;
    color: #666;
}

.property-location-large i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.draw-countdown-large {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.property-specs .spec-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.property-specs .spec-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.spec-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.spec-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.spec-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* WooCommerce Login/Account Page Styling */
.woocommerce-account .woocommerce {
    margin: 2rem 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin-bottom: 0.5rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
    background: var(--primary-color);
    color: white;
}

.woocommerce-account .woocommerce-MyAccount-content {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 2rem;
}

/* Login Form Styling */
.woocommerce form.woocommerce-form-login,
.woocommerce form.woocommerce-form-register {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin: 2rem 0;
}

.woocommerce form .form-row {
    margin-bottom: 1.5rem;
}

.woocommerce form .form-row label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: block;
}

.woocommerce form .form-row input[type="text"],
.woocommerce form .form-row input[type="email"],
.woocommerce form .form-row input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.woocommerce form .form-row input[type="text"]:focus,
.woocommerce form .form-row input[type="email"]:focus,
.woocommerce form .form-row input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.woocommerce form .form-row button,
.woocommerce form .form-row input[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.woocommerce form .form-row button:hover,
.woocommerce form .form-row input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Login/Register Layout */
.woocommerce .col2-set {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2 {
    flex: 1;
    min-width: 300px;
}

/* My Account Page */
.woocommerce-account h2,
.woocommerce-account h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.woocommerce-account .woocommerce-notices-wrapper {
    margin-bottom: 2rem;
}

/* Account Dashboard Styling */
.woocommerce-MyAccount-content p {
    line-height: 1.6;
    color: #666;
}

.woocommerce-MyAccount-content .woocommerce-orders-table {
    margin-top: 2rem;
}

/* Responsive Login */
@media (max-width: 768px) {
    .woocommerce .col2-set {
        flex-direction: column;
    }
    
    .woocommerce form.woocommerce-form-login,
    .woocommerce form.woocommerce-form-register {
        padding: 1.5rem;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 1.5rem;
    }
}
