/*
   Open House Section Styles
   File: web/css/open-house.css
   Description: CSS สำหรับ Open House Registration Section
*/

/* ========== Container & Card ========== */
.open-house-container {
    padding: 0;
    margin: 0;
}

.open-house-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px !important;
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.3s ease;
    overflow: hidden;
}

.open-house-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3) !important;
}

/* ========== Header Styles ========== */
.open-house-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    backdrop-filter: blur(15px);
    border: none;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header-icon-wrapper {
    margin-right: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.open-house-card:hover .header-icon-wrapper {
    transform: rotate(10deg);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.header-text {
    flex: 1;
}

.header-title {
    margin: 0;
    font-weight: 800;
    color: white;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.header-subtitle {
    margin: 0.25rem 0 0 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

/* ========== Body Styles ========== */
.open-house-body {
    background: rgba(255, 255, 255, 0.97);
    padding: 2rem !important;
}

/* ========== Image Section ========== */
.image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.image-container:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.open-house-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: all 0.4s ease;
}

.open-house-card:hover .open-house-image {
    transform: scale(1.05);
}

.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.status-badge .badge {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
    border: 2px solid rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* ========== Content Section ========== */
.content-wrapper {
    padding-left: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content-section {
    margin-bottom: 2rem;
}

.content-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.content-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
    letter-spacing: 0.2px;
}

/* ========== Features List ========== */
.features-list {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
    padding-left: 0.5rem;
}

.feature-icon {
    margin-right: 0.8rem;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-text {
    color: #495057;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* ========== Button Section ========== */
.button-section {
    margin-top: auto;
}

.register-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.register-btn:hover::before {
    left: 100%;
}

.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.5);
    background: linear-gradient(45deg, #ff5252, #d84315);
}

.register-btn:active {
    transform: translateY(-1px);
}

.btn-text {
    display: inline-block;
    transition: all 0.3s ease;
}

.register-btn:hover .btn-text {
    letter-spacing: 1px;
}

.trust-indicators {
    text-align: center;
    color: #6c757d;
    font-size: 0.85rem;
    margin: 1rem 0 0 0;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.4;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .open-house-header {
        padding: 1rem 1.5rem;
    }

    .header-title {
        font-size: 1.2rem;
    }

    .header-subtitle {
        font-size: 0.8rem;
    }

    .open-house-body {
        padding: 1.5rem !important;
    }

    .content-wrapper {
        padding-left: 0;
        margin-top: 1.5rem;
    }

    .content-title {
        font-size: 1.1rem;
    }

    .content-description {
        font-size: 0.9rem;
    }

    .register-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .feature-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .open-house-card {
        margin: 0 0.5rem;
        border-radius: 15px !important;
    }

    .header-icon-wrapper {
        margin-right: 0.8rem;
    }

    .header-title {
        font-size: 1.1rem;
    }

    .trust-indicators {
        font-size: 0.8rem;
    }
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

.register-btn:focus {
    animation: pulse 1.5s infinite;
}

/* ========== Utilities ========== */
.rounded-lg {
    border-radius: 1rem !important;
}

/* Print Styles */
@media print {
    .open-house-card {
        background: white !important;
        box-shadow: none !important;
    }

    .open-house-header {
        background: #f8f9fa !important;
        color: #333 !important;
    }

    .header-title {
        color: #333 !important;
    }
}

.equal-height-row {
    display: flex;
    flex-wrap: wrap;
}

.equal-height-col {
    display: flex;
    flex-direction: column;
}

.equal-height-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.equal-height-card .card-body {
    flex: 1;
}

/* ปรับลดความสูงของ Open House */
.compact-open-house .open-house-header {
    padding: 1rem 1.5rem;
}

.compact-open-house .open-house-body {
    padding: 1.5rem !important;
}

.compact-open-house .content-section {
    margin-bottom: 1rem;
}

.compact-open-house .content-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.compact-open-house .content-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.compact-open-house .features-list {
    margin-bottom: 1rem;
}

.compact-open-house .feature-item {
    margin-bottom: 0.4rem;
    padding: 0.2rem 0;
}

.compact-open-house .feature-text {
    font-size: 0.85rem;
}

.compact-open-house .register-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

.compact-open-house .trust-indicators {
    font-size: 0.8rem;
    margin: 0.8rem 0 0 0;
}

.compact-open-house .image-container {
    margin-bottom: 1rem;
}

@media (max-width: 991px) {
    .equal-height-row {
        display: block;
    }
}