/* Luxury Single Post Styles for Real Estate */

/* Color Variables */
:root {
    --primary-color: #1a1a1a; /* Đen chính */
    --secondary-color: #333333; /* Đen nhạt */
    --accent-color: #ff6b35; /* Cam từ logo */
    --accent-hover: #e55a2e; /* Cam đậm */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.25);
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Luxury Typography */
.luxury-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

.luxury-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #4a4a4a;
}

/* Enhanced Hero Section */
.post-hero {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.post-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(26, 26, 26, 0.8) 50%, var(--accent-color) 100%);
    opacity: 0.9;
    z-index: 1;
}

.post-hero-content {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.post-title {
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--white);
}

/* Luxury Content Styling */
.post-main-content {
    animation: slideInLeft 0.8s ease-out;
    background: var(--white);
    border: 1px solid #e9ecef;
    position: relative;
    box-shadow: 0 4px 20px var(--shadow-light);
}

.post-main-content::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(145deg, var(--accent-color), var(--primary-color));
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-main-content:hover::before {
    opacity: 0.05;
}

.post-sidebar {
    animation: slideInRight 0.8s ease-out;
    background: var(--white);
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 1px solid #e9ecef;
}

/* Enhanced Typography in Content */
.post-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    position: relative;
    padding-left: 25px;
    border-bottom: 2px solid var(--accent-color);
}

.post-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--accent-color);
    border-radius: 2px;
}

.post-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--secondary-color);
    position: relative;
    padding-left: 20px;
}

.post-content h3::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.7em;
}

/* Luxury Lists */
.post-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.post-content ul li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Enhanced Blockquotes */
.post-content blockquote {
    background: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    position: relative;
    margin: 40px 0;
    font-family: 'Playfair Display', serif;
    border-radius: 4px;
}

.post-content blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--accent-color);
    position: absolute;
    top: -5px;
    left: 20px;
    opacity: 0.4;
    font-family: 'Playfair Display', serif;
}

/* Luxury Sidebar Enhancements */
.sidebar-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
}

.property-features li {
    transition: all 0.3s ease;
    padding: 15px 0;
    border-radius: 4px;
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.property-features li:hover {
    background: rgba(255, 107, 53, 0.05);
    transform: translateX(5px);
}

.feature-label {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.feature-label::after {
    content: ':';
    margin-left: 2px;
}

.feature-value {
    color: var(--accent-color);
    font-weight: 700;
}

/* Enhanced Contact Agent */
.contact-agent {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    position: relative;
    overflow: hidden;
}

.contact-agent::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.contact-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.contact-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.5s;
    z-index: -1;
}

.contact-btn:hover::before {
    left: 100%;
}

/* Enhanced Navigation */
.nav-post {
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.nav-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s;
}

.nav-post:hover::before {
    left: 100%;
}

/* Enhanced Related Posts */
.related-post {
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.related-post::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(26, 26, 26, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-post:hover::after {
    opacity: 1;
}

.related-thumb {
    position: relative;
    background-size: cover !important;
    background-position: center !important;
}

.related-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    transition: background 0.3s ease;
}

.related-post:hover .related-thumb::before {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(26, 26, 26, 0.3));
}

/* Luxury Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--secondary-color));
}

/* Premium Selection Effect */
::selection {
    background: rgba(255, 107, 53, 0.3);
    color: var(--primary-color);
}

::-moz-selection {
    background: rgba(255, 107, 53, 0.3);
    color: var(--primary-color);
}

/* Luxury Loading Animation */
.luxury-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.luxury-loader.active {
    opacity: 1;
    visibility: visible;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .post-hero {
        background-attachment: scroll;
    }
    
    .post-main-content,
    .post-sidebar {
        animation: fadeInUp 0.6s ease-out;
    }
    
    .post-content h2 {
        font-size: 1.8rem;
    }
    
    .luxury-loader .loader-spinner {
        width: 40px;
        height: 40px;
    }
}

/* Print Styles */
@media print {
    .post-sidebar,
    .post-navigation,
    .related-posts {
        display: none;
    }
    
    .post-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .post-hero {
        height: 300px;
        background: #f8f9fa !important;
        color: #2c3e50 !important;
    }
}
