
.post-detail-container {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 80px auto 40px;
    padding: 0 20px;
    min-height: calc(100vh - 200px);
}


.author-section {
    flex: 0 0 30%;
    max-width: 400px;
}

.author-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0, 0, 64, 0.07);
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 32px;
}

.author-avatar {
    margin-bottom: 20px;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0a1787;
}

.default-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 3px solid #0a1787;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.default-avatar i {
    font-size: 2rem;
    color: #0a1787;
}

.author-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #181c4a;
    margin-bottom: 24px;
}

.author-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-send-message,
.btn-show-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a1787;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(10, 23, 135, 0.08);
}

.btn-send-message:hover,
.btn-show-phone:hover {
    background: #081265;
    transform: translateY(-2px);
}

.btn-send-message i,
.btn-show-phone i {
    margin-right: 8px;
    font-size: 1.1rem;
}


.other-posts-section {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0, 0, 64, 0.07);
    padding: 24px;
}

.other-posts-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #181c4a;
    margin-bottom: 20px;
    text-align: center;
}

.other-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.other-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.other-post-link:hover {
    text-decoration: none;
    color: inherit;
}

.other-post-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.2s;
    cursor: pointer;
}

.other-post-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.other-post-image {
    flex: 0 0 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.other-post-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
}

.other-post-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.other-post-info h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #181c4a;
    margin-bottom: 4px;
    line-height: 1.3;
}

.other-post-city {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 2px;
}

.other-post-date {
    font-size: 0.75rem;
    color: #adb5bd;
}


.post-content-section {
    flex: 1;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0, 0, 64, 0.07);
    padding: 40px;
}

.post-header {
    margin-bottom: 32px;
}

.post-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #181c4a;
    line-height: 1.3;
}


.post-gallery {
    margin-bottom: 40px;
}

.main-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: #f8f9fa;
}

.thumbnail-gallery {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 60px;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumbnail.active {
    border-color: #0a1787;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: #f8f9fa;
}


.post-details {
    margin-bottom: 40px;
}

.detail-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f3f4;
}

.detail-item.full-width {
    flex-direction: column;
}

.detail-label {
    flex: 0 0 120px;
    font-weight: 600;
    color: #181c4a;
    font-size: 1rem;
}

.detail-value {
    flex: 1;
    color: #495057;
    font-size: 1rem;
}

.detail-value.price {
    font-weight: 600;
    color: #0a1787;
    font-size: 1.2rem;
}

.detail-value.description {
    margin-top: 8px;
    line-height: 1.6;
    color: #495057;
}


.share-section {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #f1f3f4;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    background: #0a1787;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    border-radius: 16px;
    padding: 16px 32px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(10, 23, 135, 0.08);
}

.btn-share:hover {
    background: #081265;
    transform: translateY(-2px);
}

.btn-share i {
    margin-right: 8px;
    font-size: 1.2rem;
}


@media (max-width: 1200px) {
    .post-detail-container {
        flex-direction: column;
        gap: 32px;
    }
    
    .author-section {
        flex: none;
        max-width: none;
    }
    
    .post-content-section {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .post-detail-container {
        margin: 60px auto 20px;
        padding: 0 16px;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .main-image {
        aspect-ratio: 4/3;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
        aspect-ratio: 4/3;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .detail-label {
        flex: none;
    }
    
    .post-content-section {
        padding: 24px 20px;
    }
}

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    opacity: 1;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 20px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav.prev {
    left: 20px;
}

.modal-nav.next {
    right: 20px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1.5rem;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .modal-nav {
        padding: 15px 10px;
        font-size: 1rem;
    }
    
    .modal-nav.prev {
        left: 10px;
    }
    
    .modal-nav.next {
        right: 10px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        padding: 12px;
        font-size: 1.2rem;
    }
    
    .modal-counter {
        bottom: 10px;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.5rem;
    }
    
    .main-image {
        aspect-ratio: 4/3;
    }
    
    .author-card {
        padding: 24px 20px;
    }
    
    .other-posts-section {
        padding: 20px;
    }
}


.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    backdrop-filter: blur(2px);
    opacity: 1;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff !important;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid #e5e7eb;
    opacity: 1 !important;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    background: #ffffff;
}

.modal-form-group {
    margin-bottom: 15px;
    background: #ffffff;
}

.modal-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    background: #ffffff;
}

.modal-form-group input,
.modal-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: #ffffff;
}

.modal-form-group input[readonly] {
    background-color: #f8f9fa !important;
    color: #666;
}

.modal-form-group textarea {
    min-height: 100px;
    resize: vertical;
    background: #ffffff;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    background: #ffffff;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.modal-btn-cancel {
    border: 1px solid #ddd;
    background: #f8f9fa !important;
    color: #333;
}

.modal-btn-cancel:hover {
    background: #e9ecef !important;
}

.modal-btn-submit {
    background: #667eea !important;
    color: white;
    border: none;
}

.modal-btn-submit:hover {
    background: #5a6fd8 !important;
}

.word-count {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
    background: #ffffff;
}

.word-count.error {
    color: #dc3545;
    font-weight: 500;
    background: #ffffff;
}

.login-required-modal {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
}

.login-required-modal i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
}

.login-required-modal h3 {
    color: #333;
    margin-bottom: 15px;
}

.login-required-modal p {
    color: #666;
    margin-bottom: 20px;
}

.login-required-modal .btn-login {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.login-required-modal .btn-login:hover {
    background: #5a6fd8;
    color: white;
    text-decoration: none;
}


@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .modal-btn {
        width: 100%;
        padding: 12px 20px;
    }
} 