/* Ad Detail Page Styles */
.ad-detail-page {
    background: var(--bg-primary);
    min-height: 100vh;
    padding-bottom: 100px;
}

.ad-gallery {
    background: #000;
    position: relative;
}

.ad-gallery-main {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-counter {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    z-index: 1;
}

.ad-main-image {
    font-size: 120px;
    color: white;
}

.ad-detail-header {
    background: var(--bg-secondary);
    padding: 16px;
    margin-bottom: 8px;
}

.ad-detail-time {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.ad-detail-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.ad-detail-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.ad-section {
    background: var(--bg-secondary);
    padding: 16px;
    margin-bottom: 8px;
}

.ad-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.ad-description-full {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.5;
    white-space: pre-wrap;
}

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

.char-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 0.33px solid var(--separator);
}

.char-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.char-label {
    font-size: 15px;
    color: var(--text-secondary);
}

.char-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.seller-section {
    padding: 0;
}

.seller-card {
    padding: 16px;
}

.seller-header {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.seller-avatar-large {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.seller-info {
    flex: 1;
}

.seller-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.seller-rating {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.seller-response {
    font-size: 13px;
    color: var(--text-secondary);
}

.seller-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 16px;
    border-top: 0.33px solid var(--separator);
}

.stat {
    text-align: center;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.seller-location {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: 8px;
    margin-top: 16px;
}

.location-icon {
    font-size: 20px;
}

.location-text {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.ad-contact-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-top: 0.33px solid var(--separator);
    z-index: 100;
}

.contact-btn-large {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.contact-btn-large:active {
    opacity: 0.7;
}

.contact-btn-call {
    background: #34C759;
    color: white;
}

.contact-btn-message {
    background: var(--accent-blue);
    color: white;
}

/* Seller Profile Page */
.seller-profile-page {
    background: var(--bg-primary);
    min-height: 100vh;
    padding-bottom: 40px;
}

.seller-profile-header {
    background: var(--bg-secondary);
    padding: 32px 20px;
    text-align: center;
    margin-bottom: 8px;
}

.seller-avatar-xl {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    font-weight: 700;
    margin: 0 auto 16px;
}

.seller-profile-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.seller-profile-username {
    font-size: 15px;
    color: var(--accent-blue);
    margin-bottom: 12px;
}

.seller-profile-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rating-stars {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.rating-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.seller-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-box {
    text-align: center;
    padding: 16px 8px;
    background: var(--bg-primary);
    border-radius: 12px;
}

.stat-box-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-box-label {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.contact-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.review-item {
    background: var(--bg-primary);
    padding: 12px;
    border-radius: 12px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.review-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.review-author-info {
    flex: 1;
}

.review-author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.review-rating {
    font-size: 12px;
}

.review-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.review-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

.ad-favorite-large {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.ad-favorite-large:active {
    transform: scale(0.9);
}
