/* ============================================================
   Classic Layout - Peyvand Digital
   ============================================================ */

.profile-card {
    background: white;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.profile-cover {
    height: 150px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.profile-cover::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(255,255,255,0.1);
}

.profile-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

.profile-header {
    padding: 0 30px 20px;
    text-align: center;
    position: relative;
    margin-top: -60px;
}

.avatar-big {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 5px solid white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: white;
    display: inline-block;
    position: relative;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.profile-name {
    color: #27272A;
    font-weight: 700;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.profile-subtitle {
    color: #52525B;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.stat-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    margin: 3px;
    border: none;
    cursor: pointer;
}

.tabs-container {
    display: flex;
    border-bottom: 2px solid #F1F5F9;
    margin: 0;
    padding: 0;
    background: white;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 80px;
    padding: 18px 8px;
    background: transparent;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: #52525B;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    font-family: var(--pv-font);
}

.tab-btn:hover {
    color: var(--theme-main-fg, var(--theme-main));
    background: var(--theme-bg);
}

.tab-btn.active {
    color: var(--theme-main-fg, var(--theme-main));
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--theme-main);
    border-radius: 2px 2px 0 0;
}

.tab-content {
    padding: 25px 30px;
    min-height: 200px;
}

.tab-pane {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

.tab-pane.active {
    display: block;
}

.info-card {
    padding: 16px 20px;
    border-radius: 15px;
    background: white;
    margin-bottom: 12px;
    transition: all 0.3s;
    border: 2px solid var(--theme-bg);
    border-right: 5px solid var(--theme-main);
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
}

.info-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-3px);
    background: var(--theme-bg);
}

.info-card i {
    font-size: 1.4rem;
    margin-left: 15px;
    width: 35px;
    text-align: center;
    flex-shrink: 0;
}

.info-card a,
.info-card span {
    color: #27272A;
    font-weight: 500;
    text-decoration: none;
    flex: 1;
}

.info-card a:hover {
    color: var(--theme-main-fg, var(--theme-main));
}

.icon-telegram { color: #0088cc; }
.icon-instagram { color: #E1306C; }
.icon-phone { color: #28a745; }
.icon-location { color: #DC2626; }

.contact-form-card {
    background: var(--theme-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    border-top: 4px solid var(--theme-main);
}

.contact-form-card .form-control {
    border-radius: 10px;
    padding: 12px;
    border: 2px solid transparent;
    background: white;
}

.contact-form-card .form-control:focus {
    border-color: var(--theme-main);
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 207, 0.15);
}

.btn-theme {
    background: linear-gradient(135deg, var(--theme-main), var(--theme-light));
    border: none;
    color: var(--theme-on-main, #fff);
    font-weight: 600;
    transition: all 0.3s;
    padding: 12px 30px;
    border-radius: 10px;
}

.btn-theme:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    color: var(--theme-on-main, #fff);
}

.menu-btn {
    background: linear-gradient(135deg, #00715c, #00856d);
    color: white;
    padding: 12px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(22,163,74,0.3);
}

.menu-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(22,163,74,0.5);
    color: white;
}

.star-rating-container {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2.8rem;
    color: #8a9299;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.star-rating label:hover {
    transform: scale(1.25) rotate(-5deg);
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #a97400;
    text-shadow: 0 0 20px rgba(169, 116, 0, 0.55);
}

.star-rating input:checked + label {
    color: #a97400;
}

.rating-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--theme-main-fg, var(--theme-main));
    min-height: 30px;
    transition: all 0.3s;
    padding: 5px;
    border-radius: 10px;
}

.rating-text.highlight {
    background: var(--theme-bg);
    transform: scale(1.05);
}

.review-card {
    padding: 15px 20px;
    border-radius: 15px;
    background: white;
    margin-bottom: 15px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    border-right: 4px solid var(--theme-main);
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
    aspect-ratio: 1;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.8), rgba(196, 181, 253, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
    color: white;
    font-size: 2rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    text-align: center;
    padding: 20px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.portfolio-modal.active {
    display: flex;
}

.portfolio-modal .modal-image {
    max-width: 90%;
    max-height: 70vh;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.portfolio-modal .modal-caption {
    color: white;
    margin-top: 20px;
}

.portfolio-modal .modal-caption h4 {
    color: white;
}

.portfolio-modal .modal-caption p {
    color: #A1A1AA;
}

.portfolio-modal .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s;
}

.portfolio-modal .close-btn:hover {
    color: #fd79a8;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}


/* ============ دکمه toggle ریپلای‌ها ============ */
.replies-toggle-btn {
    background: var(--theme-bg);
    border: 2px solid var(--theme-main);
    color: var(--theme-main-fg, var(--theme-main));
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--pv-font);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.replies-toggle-btn:hover {
    background: var(--theme-main);
    color: var(--theme-on-main, #fff);
}

.replies-toggle-btn i {
    transition: transform 0.3s;
    font-size: 0.7rem;
}

.replies-toggle-btn.open i {
    transform: rotate(180deg);
}

.replies-container {
    display: none;
}

.replies-container.open {
    display: block;
    animation: fadeInReplies 0.3s ease-out;
}

@keyframes fadeInReplies {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
