/* ========== ПРОФИЛЬ МАСТЕРА ========== */

.master-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.master-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: 20px;
}

.master-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.master-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-shrink: 0;
}

.master-no-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex-shrink: 0;
}

.master-name {
    font-size: 26px;
    color: #333;
    font-weight: bold;
}

.master-age {
    font-weight: normal;
    color: #999;
    font-size: 20px;
}

.master-city {
    color: #666;
    font-size: 16px;
    margin-top: 5px;
}

.master-stats {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.stat {
    background: #f5f5f5;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
}

.master-section {
    margin-top: 30px;
}

.master-section h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 18px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    background: #667eea;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
}

.master-about {
    color: #555;
    line-height: 1.6;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.portfolio-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-add {
    aspect-ratio: 1;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fafafa;
}

.portfolio-add span {
    font-size: 32px;
    color: #999;
}

.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 32px;
    cursor: pointer;
}

.photo-modal img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

.modal-actions {
    position: absolute;
    bottom: 30px;
    display: flex;
    gap: 15px;
}

.review-item {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.review-stars {
    color: #f0a500;
}

.review-date {
    color: #999;
    font-size: 13px;
    margin-left: 10px;
}

.review-comment {
    margin-top: 5px;
    color: #555;
}

.master-views {
    text-align: center;
    margin-top: 20px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 16px;
    margin-top: 20px;
    border: none;
}

.btn-primary { background: #667eea; color: white; }
.btn-primary:hover { background: #5a67d8; }

.btn-green { background: #48bb78; color: white; }
.btn-green:hover { background: #38a169; }

.btn-red { background: #e53e3e; color: white; }
.btn-red:hover { background: #c53030; }

.master-back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: white;
    text-decoration: none;
}

.master-back-link:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .master-container { padding: 10px; }
    .master-card { padding: 20px 15px; }
    .master-name { font-size: 20px; }
    .master-photo, .master-no-photo { width: 100px; height: 100px; }
    .stat { font-size: 12px; padding: 6px 12px; }
    .master-stats { gap: 8px; }
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}