/* ============================================
   Стили для профилей пользователей
   ============================================ */

/* ============================================
   Настройки профиля
   ============================================ */

.profile-settings {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-color);
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.settings-section {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section .section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.cost-info {
    background-color: var(--hover-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.current-cost {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--success-color);
}

/* ============================================
   Список ретушеров
   ============================================ */

.retoucher-card {
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px var(--shadow-color);
    background: var(--card-bg);
}

.retoucher-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--shadow-color-hover);
    border-color: var(--accent-color);
}

.retoucher-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Адаптация аватара в списке ретушеров для темной темы */
[data-theme="dark"] .retoucher-avatar {
    border: 3px solid var(--card-border);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.retoucher-avatar-placeholder {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    font-weight: bold;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Адаптация заглушки аватара в списке ретушеров для темной темы */
[data-theme="dark"] .retoucher-avatar-placeholder {
    border: 3px solid var(--card-border);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.retoucher-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.retoucher-cost {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.retoucher-cost strong {
    color: var(--text-color);
    font-size: 1.1rem;
}

.retoucher-eta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.retoucher-eta strong {
    color: var(--text-color);
    font-size: 1rem;
}

.portfolio-btn {
    background: var(--accent-color);
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.portfolio-btn:hover {
    background: #3A668B;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
    text-decoration: none;
}

.empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

.empty-state i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

/* ============================================
   Профиль ретушера
   ============================================ */

.profile-header {
    background: var(--hover-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Адаптация заглушки аватара для темной темы */
[data-theme="dark"] .profile-avatar {
    background: var(--accent-color);
    border: 2px solid var(--card-border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.profile-avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Адаптация изображения аватара для темной темы */
[data-theme="dark"] .profile-avatar-image {
    border: 2px solid var(--card-border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.profile-info-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 12px var(--shadow-color);
    height: 100%;
}

.info-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.info-row {
    display: table-row;
}

.info-label {
    display: table-cell;
    font-weight: 600;
    color: var(--text-color);
    padding: 0.75rem 1rem 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    width: 40%;
}

.info-value {
    display: table-cell;
    color: var(--text-muted);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child .info-label,
.info-row:last-child .info-value {
    border-bottom: none;
}

.contact-button {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.back-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-link-container {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.back-link:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.specialty-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Портфолио стили */
.portfolio-section {
    margin-top: 0;
}

.portfolio-section h3 {
    text-align: center;
}

.portfolio-grid {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
}

.portfolio-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: all 0.2s ease;
    margin-bottom: 1rem;
    height: 100%;
}

.portfolio-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color-hover);
}

.portfolio-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--hover-bg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-image-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.portfolio-download-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.portfolio-download-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 1rem;
}

.portfolio-download-link:hover .portfolio-download-overlay {
    opacity: 1;
}

.portfolio-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.portfolio-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.portfolio-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-align: center;
}

/* ============================================
   Адаптивность
   ============================================ */

@media (max-width: 768px) {
    .retoucher-card {
        margin-bottom: 1rem;
    }
    
    .retoucher-avatar, .retoucher-avatar-placeholder {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .retoucher-name {
        font-size: 1rem;
    }
    
    .retoucher-cost {
        font-size: 0.9rem;
    }
    
    .retoucher-cost strong {
        font-size: 1rem;
    }
    
    .portfolio-btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state i {
        font-size: 3rem;
    }
    
    .back-link-container {
        margin-top: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .profile-header {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .profile-avatar, .profile-avatar-image {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
    }
    
    .profile-info-card {
        padding: 1rem;
    }
    
    .info-table {
        font-size: 0.9rem;
    }
    
    .info-label {
        width: 35%;
        padding: 0.5rem 0.75rem 0.5rem 0;
    }
    
    .info-value {
        padding: 0.5rem 0;
    }
    
    .contact-button {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .contact-button .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    .portfolio-section h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .portfolio-item {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .portfolio-title {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .portfolio-image {
        height: 100px;
    }
    
    .portfolio-label {
        font-size: 0.7rem;
        padding: 0.2rem;
    }
    
    .portfolio-download-overlay {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .retoucher-avatar, .retoucher-avatar-placeholder {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .retoucher-name {
        font-size: 0.95rem;
    }
    
    .retoucher-cost {
        font-size: 0.85rem;
    }
    
    .portfolio-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .back-link-container {
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
    }
    
    .profile-header {
        padding: 0.5rem;
    }
    
    .profile-avatar, .profile-avatar-image {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    
    .profile-info-card {
        padding: 0.75rem;
    }
    
    .info-table {
        font-size: 0.85rem;
    }
    
    .info-label {
        width: 40%;
        padding: 0.4rem 0.5rem 0.4rem 0;
    }
    
    .info-value {
        padding: 0.4rem 0;
    }
    
    .portfolio-section h3 {
        text-align: center;
    }
    
    .portfolio-item {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .portfolio-title {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .portfolio-image {
        height: 80px;
    }
    
    .portfolio-label {
        font-size: 0.65rem;
        padding: 0.15rem;
    }
    
    .contact-button .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 991.98px) and (min-width: 768px) {
    .portfolio-item .row.g-2 {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }
    
    .portfolio-item .col-6 {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    .portfolio-image {
        height: 120px;
    }
}

@media (min-width: 1200px) {
    .portfolio-image {
        height: 140px;
    }
    
    .portfolio-item {
        padding: 1.25rem;
    }
    
    .portfolio-title {
        font-size: 1.1rem;
    }
}

.retoucher-profile-page {
    padding-bottom: 6rem;
    margin-bottom: 0;
}

.profile-info-card {
    margin-bottom: 2rem;
}

@media (max-height: 1125px) {
    .retoucher-profile-page { 
        padding-bottom: 9rem; 
    }
    
    .profile-info-card { 
        margin-bottom: 3rem; 
    }
}

/* ============================================
   Pricing Table Styles
   ============================================ */

.pricing-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.pricing-info {
    padding: 0.75rem 1rem;
    background: var(--hover-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.pricing-table {
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
}

.pricing-table thead th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 0.875rem 0.75rem;
    border: none;
    font-size: 0.85rem;
    white-space: nowrap;
}

[data-theme="dark"] .pricing-table thead th {
    background: var(--accent-color);
}

.pricing-table .type-column {
    min-width: 140px;
}

.pricing-table .price-column {
    min-width: 90px;
}

.pricing-table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    border-color: var(--border-color);
}

.pricing-table .type-cell {
    font-weight: 500;
    color: var(--text-color);
}

.pricing-table .type-cell i {
    color: var(--accent-color);
}

.pricing-table .price-cell {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-feature-settings: 'tnum' 1; /* Табличные цифры для выравнивания */
}

.pricing-table .price-value {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
}

.pricing-table .price-currency {
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 2px;
}

/* Price column colors - subtle backgrounds matching legend */
.pricing-table .normal-price {
    background: rgba(76, 175, 80, 0.08);
}

.pricing-table .complex-price {
    background: rgba(33, 150, 243, 0.08);
}

.pricing-table .urgent-price {
    background: rgba(255, 152, 0, 0.1);
}

.pricing-table .urgent-complex-price {
    background: rgba(244, 67, 54, 0.1);
}

/* Dark theme - slightly more visible */
[data-theme="dark"] .pricing-table .normal-price {
    background: rgba(76, 175, 80, 0.12);
}

[data-theme="dark"] .pricing-table .complex-price {
    background: rgba(33, 150, 243, 0.12);
}

[data-theme="dark"] .pricing-table .urgent-price {
    background: rgba(255, 152, 0, 0.15);
}

[data-theme="dark"] .pricing-table .urgent-complex-price {
    background: rgba(244, 67, 54, 0.15);
}

.pricing-table tbody tr:hover {
    background: var(--hover-bg);
}

/* Legend dots */
.pricing-legend {
    padding: 0.75rem;
    background: var(--hover-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.legend-dot.normal {
    background: #4caf50;
}

.legend-dot.complex {
    background: #2196f3;
}

.legend-dot.urgent {
    background: #ff9800;
}

.legend-dot.urgent-complex {
    background: #f44336;
}

/* Tabs styling for profile page */
#profileTabs .nav-link {
    color: var(--text-muted);
    border: 1px solid transparent;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

#profileTabs .nav-link:hover {
    border-color: var(--border-color);
    color: var(--text-color);
}

#profileTabs .nav-link.active {
    background: var(--card-bg);
    color: var(--accent-color);
    border-color: var(--border-color);
    border-bottom-color: var(--card-bg);
}

[data-theme="dark"] #profileTabs .nav-link.active {
    border-bottom-color: var(--card-bg);
}

/* Header text switching - default show full, hide short */
.pricing-table .header-short {
    display: none;
}
.pricing-table .header-full {
    display: inline;
}

/* Responsive pricing table - medium screens (1200-990px) */
@media (max-width: 1199.98px) and (min-width: 990px) {
    .pricing-table .header-full {
        display: none;
    }
    .pricing-table .header-short {
        display: inline;
    }
    
    .pricing-table thead th {
        padding: 0.5rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .pricing-table tbody td {
        padding: 0.4rem 0.35rem;
    }
    
    .pricing-table .type-column {
        min-width: 85px;
    }
    
    .pricing-table .price-column {
        min-width: 50px;
    }
    
    .pricing-table .price-value {
        font-size: 0.85rem;
    }
    
    .pricing-table .type-cell {
        font-size: 0.8rem;
    }
    
    .pricing-table .type-cell i {
        display: none;
    }
}

/* Responsive pricing table - tablet */
@media (max-width: 768px) {
    .pricing-section {
        padding: 1rem;
    }
    
    .pricing-table thead th {
        padding: 0.625rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .pricing-table tbody td {
        padding: 0.5rem;
    }
    
    .pricing-table .type-column {
        min-width: 100px;
    }
    
    .pricing-table .price-column {
        min-width: 70px;
    }
    
    .pricing-table .price-value {
        font-size: 0.875rem;
    }
    
    .pricing-table .type-cell {
        font-size: 0.85rem;
    }
    
    .pricing-table .type-cell i {
        display: none;
    }
    
    .pricing-legend {
        padding: 0.5rem;
    }
    
    .pricing-legend small {
        font-size: 0.75rem;
    }
    
    #profileTabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Responsive pricing table - small screens (576px and less) */
@media (max-width: 576px) {
    .pricing-table {
        font-size: 0.75rem;
    }
    
    .pricing-table thead th {
        padding: 0.5rem 0.35rem;
        font-size: 0.65rem;
    }
    
    .pricing-table tbody td {
        padding: 0.4rem 0.35rem;
    }
    
    .pricing-table .type-column {
        min-width: 80px;
    }
    
    .pricing-table .price-column {
        min-width: 55px;
    }
    
    .pricing-table .price-value {
        font-size: 0.75rem;
    }
    
    .pricing-table .price-currency {
        font-size: 0.65rem;
    }
    
    .pricing-legend .row > div {
        width: 100%;
    }
    
    #profileTabs .nav-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    #profileTabs .nav-link i {
        display: none;
    }
}

/* Responsive pricing table - very small screens (450px and less) */
@media (max-width: 450px) {
    .pricing-table .header-full {
        display: none;
    }
    .pricing-table .header-short {
        display: inline;
    }
    
    .pricing-table thead th {
        padding: 0.4rem 0.25rem;
        font-size: 0.6rem;
    }
    
    .pricing-table tbody td {
        padding: 0.35rem 0.25rem;
    }
    
    .pricing-table .type-column {
        min-width: 60px;
    }
    
    .pricing-table .price-column {
        min-width: 42px;
    }
    
    .pricing-table .price-value {
        font-size: 0.7rem;
    }
    
    .pricing-table .price-currency {
        font-size: 0.55rem;
    }
    
    .pricing-table .type-cell {
        font-size: 0.7rem;
    }
}

