/* Base variables */
:root {
    --primary-red: #E92A2A;
    --primary-red-600: #C32424;
    --ink-900: #081035;
    --ink-700: #333333;
    --ink-500: #667085;
    --muted: #909090;
    --surface: #ffffff;
    --bg: #f5f6fa;
    --border: #E0E6F2;
    --gray-100: #F5F7FB;
    --gray-200: #EEF1F7;
    --thumb-bg: #f3f4f6;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, .06);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, .08);
    --font: 'Vazirmatn', 'yekan bakh', sans-serif;
}

html, body { height: 100%; }
body { background: var(--bg); color: var(--ink-900); font-family: var(--font); direction: rtl; }

.page-container { width: 100%; }
.main-content { max-width: 1340px; width: 90%; margin: 0 auto 50px; }

/* Generic card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink-900);
    margin-bottom: 16px;
}

.not-provided {
    color: var(--muted);
    font-style: italic;
}

/* Top section layout */
.top-section {
    display: grid;
    grid-template-columns: 1fr; /* Single column for page ID only */
    gap: 16px;
    margin-bottom: 20px;
}

.answer-inserter-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.answer-inserter-profile .profile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.answer-inserter-profile .profile-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-red);
}

.answer-inserter-profile .profile-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink-900);
}

.page-id-section {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Changed to space-between */
    background: var(--gray-100);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 12px 18px;
}

.edit-answer-btn {
    background-color: var(--primary-red);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s, transform 0.2s;
}

.edit-answer-btn:hover {
    background-color: var(--primary-red-600);
    transform: translateY(-2px);
}

.page-id-title {
    color: var(--primary-red);
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.stats-bar { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.stat-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-700); }
.stat-item i { font-size: 18px; color: var(--primary-red); }

/* Ferz coin styling */
.ferz-coin {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: 2px solid #FF8C00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: #8B4513;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.ferz-coin:hover {
    transform: scale(1.1);
}

.ferz-letter {
    font-family: var(--font);
    font-weight: 900;
}

/* Star rating styling */
.star-rating {
    display: flex;
    gap: 2px;
    color: #FFD700;
    font-size: 16px;
}

.star-rating i {
    color: #FFD700;
}

/* Profile stat item styling */
.profile-stat-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.profile-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.profile-stat-item .profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.profile-stat-item .profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-red);
}

.profile-stat-item .profile-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-900);
}


/* Content wrapper */
.content-wrapper {
    margin-top: 20px;
}

.answer-details {
    display: grid;
    gap: 20px;
}

/* Flex container for content and gallery */
.content-flex-container {
  display: flex
;
    flex-direction: row-reverse;
    gap: 20px;
    align-items: stretch;
}

.gallery-container {
    flex: 0 0 400px;
    order: 1; /* Gallery on the left */
}

.description-container {
    flex: 1;
    order: 2; /* Description on the right */
}

@media (max-width: 1024px) {
    .content-flex-container {
        flex-direction: column;
    }
    
    .gallery-container {
        flex: 1;
        width: 100%;
        order: 1;
    }
    
    .description-container {
        order: 2;
    }

    .video-text-wrapper {
        flex-direction: column;
    }

    .video-text-wrapper .video-section,
    .video-text-wrapper .third-text-section {
        flex: 1;
        width: 100%;
    }
}

.page-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--ink-900);
    margin: 0 0 20px;
    text-align: center;
}

.initial-description-section .answer-content {
    color: var(--ink-700);
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
}

/* Photo Gallery Slider */
.photo-gallery-section {
    padding: 20px;
    /* Hide this section since we have the answer gallery section */
    display: none;
}

.answer-photo-gallery-section {
    padding: 20px;
}

.image-slider {
    position: relative;
    width: 100%;
    max-width: 400px; /* Adjusted for flex layout */
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--gray-100);
    z-index: 1; /* Ensure proper stacking */
}

.answer-image-slider {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--gray-100);
    z-index: 1;
    height: 350px; /* Increased height for better visibility */
}



.answer-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}



.answer-slider-images {
    position: relative;
    width: 100%;
    height: 100%;
}
.farzyab-footer {
    border-radius: 8px;
    margin: 39px auto 19px auto;
    background: white;
    padding: 30px;
    font-family: 'Yekan Bakh', sans-serif;
     max-width: 100%; 
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.slider-image.active {
    opacity: 1;
    z-index: 2;
}

.answer-slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.answer-slider-image.active {
    opacity: 1;
    z-index: 2;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 100; /* Higher z-index for navigation */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slider-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.answer-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.answer-slider-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.prev-btn {
    right: 15px;
}

.next-btn {
    left: 15px;
}

.answer-prev-btn {
    right: 15px;
}

.answer-next-btn {
    left: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.answer-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 50;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.answer-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.answer-dot:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.dot.active {
    background-color: var(--primary-red);
    transform: scale(1.2);
}

.answer-dot.active {
    background-color: var(--primary-red);
    transform: scale(1.2);
    border-color: var(--primary-red);
    box-shadow: 0 0 8px rgba(233, 42, 42, 0.5);
}

.no-gallery-images {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: var(--muted);
}

.answer-no-gallery-images {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: var(--muted);
}

/* Advertising Placeholders */
.advertising-api-location-section,
.advertising-site-visit-frame-section {
    text-align: center;
    padding: 30px;
    background: var(--gray-100);
    border: 1px dashed var(--border);
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.ad-box {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.ad-box a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.ad-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ad-box.text-ad {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: var(--ink-700);
    font-size: 14px;
}

.ad-box.ad-placeholder {
    background: var(--gray-100);
    border: 2px dashed var(--border);
}

.ad-placeholder, .ad-frame-placeholder {
    font-size: 18px;
    color: var(--muted);
    padding: 20px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
}

.site-frame-container {
    width: 100%;
    height: 400px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 15px;
    position: relative;
}

.site-frame-header {
    background: var(--gray-100);
    padding: 10px 15px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-frame-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-900);
}

.site-iframe {
    width: 100%;
    height: calc(100% - 50px);
    border: none;
    display: block;
}

/* Video Section */
.video-section {
    padding: 20px;
}

.video-section .video-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
    box-shadow: var(--shadow-md);
}

.video-section video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
}

.video-controls-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.video-control-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.video-control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.no-video {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: var(--muted);
}

/* Video and Third Text Wrapper */
.video-text-wrapper {
    display: flex;
    flex-direction: row-reverse; /* Video on left, text on right */
    gap: 20px;
    align-items: stretch;
    margin-bottom: 20px; /* Add some space below the wrapper */
}

.video-text-wrapper .video-section {
    flex: 0 0 60%; /* Video box width set to 60% */
    order: 1; /* Video on the left */
}

.video-text-wrapper .third-text-section {
    flex: 1; /* Text takes remaining space */
    order: 2; /* Text on the right */
}

/* General Text Sections */
.text-section {
    padding: 20px;
    margin-bottom: 20px;
}

.text-section .answer-content {
    color: var(--ink-700);
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
    margin: 10px 0;
}

/* Fix spacing between sections */
.content-wrapper .answer-details > section {
    margin-bottom: 20px;
}

.content-wrapper .answer-details > section:last-child {
    margin-bottom: 0;
}

/* Map Section */
.map-section {
    padding: 20px;
}

.map-container {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #e9eaee;
    min-height: 350px;
    overflow: hidden;
}

.map-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.map-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.map-icon {
    font-size: 24px;
    color: var(--primary-red);
}

.map-text {
    font-size: 16px;
    color: var(--ink-900);
    font-weight: 600;
}

.map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.map-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.primary-btn {
    background: var(--primary-red);
    color: white;
}

.primary-btn:hover {
    background: var(--primary-red-600);
    transform: translateY(-1px);
}

.secondary-btn {
    background: var(--gray-100);
    color: var(--ink-700);
    border: 1px solid var(--border);
}

.secondary-btn:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 15px;
    color: var(--muted);
}

.map-placeholder i {
    font-size: 48px;
    color: var(--muted);
}

.map-placeholder-text {
    color: var(--muted);
    font-size: 16px;
    text-align: center;
}

/* Contact Info Section */
.contact-info-section {
    padding: 20px;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.contact-info-list li {
    font-size: 15px;
    color: var(--ink-700);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 12px;
}

.contact-info-list li:last-child {
    border-bottom: none;
}

.contact-info-list .label {
    color: var(--ink-500);
    min-width: 120px;
    font-weight: bold;
}

.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icons img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.2s;
}

.social-icons img:hover {
    transform: scale(1.1);
}

/* Popularity Section */
.popularity-section {
    padding: 20px;
}

.popularity-score {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: var(--ink-700);
}

.popularity-score .rating-display {
    color: #f59e0b;
    font-size: 24px;
}

/* Keywords Section */
.keywords-section {
    padding: 20px;
}

.keywords-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.keyword-tag {
    background: var(--gray-100);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 14px;
    color: var(--ink-700);
    transition: all 0.2s ease;
}

.keyword-tag:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
}

/* Phone link styling */
.phone-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.phone-link:hover {
    text-decoration: underline;
    transform: scale(1.05);
}

/* Video section with thumbnail */
.video-section .no-video {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #f0f0f0;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.video-thumbnail .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.video-thumbnail .play-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.video-thumbnail .play-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.video-thumbnail .play-overlay:hover .play-icon {
    transform: scale(1.1);
}

.video-thumbnail .play-icon i {
    font-size: 36px;
    color: var(--primary-red);
    margin-right: 5px;
}

/* Comment Sections */
.register-comment-section,
.show-comments-section {
    padding: 20px;
}

.comment-alert.success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #86efac;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 24px;
}

.comment-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-form .form-group.full-width {
    grid-column: 1 / -1;
}

.comment-form label {
    font-size: 14px;
    color: var(--ink-700);
    font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    background: var(--gray-100);
    font-size: 14px;
    color: var(--ink-900);
    transition: box-shadow 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-red-600);
}

.comment-form textarea {
    min-height: 100px;
    resize: vertical;
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 10px;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fab005;
    flex-direction: row-reverse; /* Stars from right to left */
}

.rating-input .rating-label {
    font-size: 14px;
    color: var(--ink-700);
    font-weight: 600;
    margin-left: 10px;
}

.rating-input .star {
    cursor: pointer;
    font-size: 22px;
}

.submit-comment-btn {
    background: var(--primary-red);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-comment-btn:hover {
    background: var(--primary-red-600);
}

.comments-list {
    margin-top: 20px;
    display: grid;
    gap: 16px;
}

.no-comments {
    text-align: center;
    color: var(--muted);
    font-size: 15px;
    padding: 20px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
}

.comment {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--gray-100);
    padding: 16px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-header .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f0;
}

.comment-author {
    flex-grow: 1;
}

.comment-author .user-name {
    font-weight: 800;
    color: var(--ink-900);
    font-size: 15px;
}

.comment-date {
    color: var(--ink-500);
    font-size: 13px;
}

.comment-rating {
    color: #f59e0b;
    font-size: 14px;
}

.comment-body p {
    color: var(--ink-700);
    font-size: 15px;
    line-height: 1.9;
    text-align: justify;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        width: 95%;
    }
    
    .content-flex-container {
        flex-direction: column;
    }
    
    .gallery-container {
        flex: 1;
        width: 100%;
        order: 1;
    }
    
    .description-container {
        order: 2;
    }
    
    .video-text-wrapper {
        flex-direction: column;
    }
    
    .video-text-wrapper .video-section,
    .video-text-wrapper .third-text-section {
        flex: 1;
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .stats-bar {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .stat-item {
        font-size: 13px;
    }
    
    .ads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .answer-image-slider {
        max-width: 100%;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .main-content {
        width: 95%;
        padding-top: 15px;
    }

    .card {
        padding: 15px;
    }

    .page-title {
        font-size: 28px;
    }

    .answer-inserter-profile .profile-image {
        width: 50px;
        height: 50px;
    }

    .answer-inserter-profile .profile-name {
        font-size: 16px;
    }

    .page-id-title {
        font-size: 18px;
    }

    .stats-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 15px;
        gap: 10px;
    }

    .stat-item {
        font-size: 13px;
        width: 100%;
    }

    .stat-item i {
        font-size: 16px;
    }

    .ferz-coin {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .star-rating {
        font-size: 14px;
    }

    .profile-stat-item .profile-image {
        width: 35px;
        height: 35px;
    }

    .profile-stat-item .profile-name {
        font-size: 13px;
    }

    .answer-image-slider {
        height: 250px;
    }

    .answer-slider-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .comment-form {
        grid-template-columns: 1fr;
    }

    .comment-form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .submit-comment-btn {
        width: 100%;
    }
    
    .site-frame-container {
        height: 300px;
    }
    
    .video-section video {
        aspect-ratio: 16 / 9;
    }
    
    .contact-info-list {
        grid-template-columns: 1fr;
    }
    
    .contact-info-list .label {
        min-width: 100px;
    }
}

@media (max-width: 600px) {
    .stats-bar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-item {
        padding: 8px;
        background: var(--gray-100);
        border-radius: var(--radius-sm);
        border: 1px solid var(--border);
    }
    
    .profile-stat-item {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .main-content {
        width: 98%;
        padding-top: 10px;
    }

    .page-title {
        font-size: 24px;
    }

    .stat-item i {
        font-size: 14px;
    }

    .ferz-coin {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .star-rating {
        font-size: 12px;
    }

    .profile-stat-item .profile-image {
        width: 30px;
        height: 30px;
    }

    .profile-stat-item .profile-name {
        font-size: 12px;
    }

    .page-id-title {
        font-size: 16px;
    }

    .answer-image-slider {
        height: 200px;
    }

    .answer-slider-nav {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .answer-dot {
        width: 10px;
        height: 10px;
    }

    .ads-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .site-frame-container {
        height: 250px;
    }

    .site-frame-header h4 {
        font-size: 14px;
    }

    .video-control-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .map-actions {
        flex-direction: column;
    }

    .map-btn {
        width: 100%;
        justify-content: center;
    }

    .contact-info-list .label {
        min-width: 90px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .text-section .answer-content {
        font-size: 14px;
    }
    
    .contact-info-list li {
        font-size: 13px;
    }
    
    .comment-body p {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .stats-bar {
        grid-template-columns: 1fr;
    }
    
    .profile-stat-item {
        grid-column: span 1;
    }
    
    .answer-image-slider {
        height: 180px;
    }
    
    .card {
        padding: 12px;
    }
}
