/*
 * Avukat Law Platform - Profile Page CSS
 * Version: 6.0.0
 * Mobile-First Responsive Design
 */

/* ============================================
   PROFILE PAGE
   ============================================ */
.alp-profile-page {
    background: var(--alp-bg, #f3f4f6);
    min-height: 100vh;
    padding-bottom: 40px;
}

/* ============================================
   PROFILE HEADER
   ============================================ */
.alp-profile-header {
    background: var(--alp-white, #ffffff);
    margin-bottom: 16px;
}

.alp-cover-photo {
    height: 120px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.alp-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 100%);
}

.alp-profile-info {
    padding: 60px 16px 20px;
    text-align: center;
    position: relative;
}

.alp-profile-avatar {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
}

.alp-profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    background: #f3f4f6;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.alp-profile-avatar .alp-verified-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    transform: none;
    left: auto;
}

.alp-profile-details {
    margin-top: 8px;
}

.alp-profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px;
    line-height: 1.3;
}

.alp-profile-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #2563eb;
    margin-top: 4px;
}

.alp-profile-company {
    font-size: 14px;
    color: #6b7280;
    margin: 8px 0;
}

.alp-profile-company .alp-icon {
    margin-right: 4px;
}

.alp-profile-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 14px 0;
}

.alp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

.alp-icon {
    font-size: 14px;
}

/* ============================================
   PROFILE STATS
   ============================================ */
.alp-profile-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 16px 0;
    margin: 16px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.alp-stat {
    text-align: center;
    min-width: 60px;
}

.alp-stat-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.alp-stat-label {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

/* ============================================
   RATING BADGE
   ============================================ */
.alp-profile-rating-badge {
    margin: 14px 0;
}

.alp-rating-badge,
.alp-lawyer-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* ============================================
   PROFILE ACTIONS
   ============================================ */
.alp-profile-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.alp-profile-actions .alp-btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* ============================================
   TAB NAVIGATION
   ============================================ */
.alp-profile-nav {
    display: flex;
    background: #fff;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid #e5e7eb;
}

.alp-profile-nav::-webkit-scrollbar {
    display: none;
}

.alp-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
    min-width: 70px;
}

.alp-nav-item:hover,
.alp-nav-item.active {
    color: #2563eb;
}

.alp-nav-item.active {
    border-bottom-color: #2563eb;
}

.alp-nav-icon {
    font-size: 18px;
}

/* ============================================
   CONTENT LAYOUT
   ============================================ */
.alp-profile-content {
    padding: 16px;
}

.alp-profile-main {
    margin-bottom: 20px;
}

.alp-profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.alp-about-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ============================================
   SECTIONS & WIDGETS
   ============================================ */
.alp-about-section,
.alp-profile-section,
.alp-sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
}

.alp-about-section h2,
.alp-profile-section h2,
.alp-sidebar-widget h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alp-about-content,
.alp-sidebar-widget > p {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    margin: 0;
}

/* ============================================
   INFO GRID
   ============================================ */
.alp-info-grid {
    display: flex;
    flex-direction: column;
}

.alp-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.alp-info-item:first-child {
    padding-top: 0;
}

.alp-info-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 10px;
    font-size: 18px;
    flex-shrink: 0;
}

.alp-info-content {
    flex: 1;
    min-width: 0;
}

.alp-info-label {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.alp-info-value {
    display: block;
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
    word-break: break-word;
}

.alp-info-value a {
    color: #2563eb;
    text-decoration: none;
}

/* ============================================
   ADDRESS CARD
   ============================================ */
.alp-address-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.alp-address-card:hover {
    background: #dbeafe;
}

.alp-address-clickable {
    cursor: pointer;
}

.alp-address-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.alp-address-content {
    flex: 1;
}

.alp-address-line {
    font-size: 14px;
    line-height: 1.5;
    color: #1f2937;
    margin: 0 0 4px;
}

.alp-address-location {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.alp-map-icon {
    color: #2563eb;
    font-size: 22px;
    flex-shrink: 0;
}

/* ============================================
   TIMELINE LIST
   ============================================ */
.alp-timeline-list {
    display: flex;
    flex-direction: column;
}

.alp-timeline-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.alp-timeline-item:first-child {
    padding-top: 0;
}

.alp-timeline-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 18px;
    flex-shrink: 0;
}

.alp-timeline-content {
    flex: 1;
    min-width: 0;
}

.alp-timeline-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px;
}

.alp-timeline-content p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.alp-timeline-date {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

/* ============================================
   CONTACT LIST
   ============================================ */
.alp-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alp-contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.alp-contact-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.alp-contact-list li:first-child {
    padding-top: 0;
}

.alp-contact-icon {
    font-size: 18px;
    width: 26px;
    text-align: center;
    flex-shrink: 0;
}

.alp-contact-list a {
    color: #1f2937;
    text-decoration: none;
    word-break: break-all;
    flex: 1;
}

.alp-contact-list a:hover {
    color: #2563eb;
}

/* ============================================
   TAGS
   ============================================ */
.alp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.alp-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    background: #f3f4f6;
    color: #374151;
    border-radius: 20px;
}

/* ============================================
   LANGUAGE LIST
   ============================================ */
.alp-language-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alp-language-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.alp-language-list li:last-child {
    border-bottom: none;
}

.alp-lang-name {
    font-size: 14px;
    color: #1f2937;
}

/* ============================================
   SOCIAL LINKS
   ============================================ */
.alp-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.alp-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.2s ease;
}

.alp-social-link:hover {
    transform: scale(1.1);
}

/* ============================================
   POSTS / TIMELINE
   ============================================ */
.alp-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.alp-post-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
}

.alp-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.alp-post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.alp-post-meta {
    flex: 1;
}

.alp-post-author {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.alp-post-time {
    font-size: 12px;
    color: #9ca3af;
}

.alp-post-content {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 14px;
}

.alp-post-actions {
    display: flex;
    gap: 20px;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}

.alp-post-action {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.alp-post-action:hover {
    color: #2563eb;
}

/* ============================================
   REVIEWS
   ============================================ */
.alp-reviews-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 18px;
}

.alp-rating-big {
    text-align: center;
    min-width: 80px;
}

.alp-rating-number {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.alp-rating-stars {
    color: #fbbf24;
    font-size: 16px;
    margin-top: 6px;
}

.alp-rating-count {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.alp-review-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid #f3f4f6;
}

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

.alp-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.alp-review-meta {
    flex: 1;
}

.alp-review-author {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.alp-review-date {
    font-size: 12px;
    color: #9ca3af;
}

.alp-review-rating {
    color: #fbbf24;
    font-size: 14px;
}

.alp-review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

/* ============================================
   ARTICLES
   ============================================ */
.alp-articles-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.alp-article-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.alp-article-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.alp-article-image {
    width: 90px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}

.alp-article-content {
    flex: 1;
    min-width: 0;
}

.alp-article-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 6px;
    line-height: 1.4;
}

.alp-article-title a {
    color: inherit;
    text-decoration: none;
}

.alp-article-excerpt {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.alp-article-meta {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 6px;
}

/* ============================================
   CASES
   ============================================ */
.alp-case-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}

.alp-case-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 10px;
}

.alp-case-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    flex: 1;
}

.alp-case-result {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.alp-case-result.won {
    background: #d1fae5;
    color: #065f46;
}

.alp-case-result.settled {
    background: #fef3c7;
    color: #92400e;
}

.alp-case-result.lost {
    background: #fee2e2;
    color: #991b1b;
}

.alp-case-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.alp-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #9ca3af;
}

.alp-empty-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 14px;
    opacity: 0.5;
}

.alp-empty-state h3 {
    font-size: 17px;
    color: #1f2937;
    margin: 0 0 8px;
}

.alp-empty-state p {
    font-size: 14px;
    margin: 0;
}

/* ============================================
   RESPONSIVE - TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
    .alp-cover-photo {
        height: 180px;
    }
    
    .alp-profile-info {
        padding: 70px 24px 24px;
    }
    
    .alp-profile-avatar {
        top: -60px;
    }
    
    .alp-profile-avatar img {
        width: 120px;
        height: 120px;
    }
    
    .alp-profile-name {
        font-size: 26px;
    }
    
    .alp-profile-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .alp-profile-stats {
        gap: 32px;
    }
    
    .alp-stat-number {
        font-size: 24px;
    }
    
    .alp-nav-item {
        flex-direction: row;
        gap: 8px;
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .alp-profile-content {
        padding: 24px;
    }
    
    .alp-about-section,
    .alp-profile-section,
    .alp-sidebar-widget {
        padding: 24px;
    }
    
    .alp-about-section h2,
    .alp-profile-section h2 {
        font-size: 17px;
    }
    
    /* Info Grid 2 columns */
    .alp-info-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 24px;
    }
    
    .alp-info-item {
        border-bottom: none;
        padding: 12px 0;
    }
}

/* ============================================
   RESPONSIVE - DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    .alp-cover-photo {
        height: 220px;
    }
    
    .alp-profile-info {
        text-align: left;
        padding: 28px 32px;
        padding-left: 190px;
    }
    
    .alp-profile-avatar {
        top: -55px;
        left: 32px;
        transform: none;
    }
    
    .alp-profile-avatar img {
        width: 140px;
        height: 140px;
    }
    
    .alp-profile-meta {
        justify-content: flex-start;
    }
    
    .alp-profile-stats {
        justify-content: flex-start;
    }
    
    .alp-profile-rating-badge {
        text-align: left;
    }
    
    .alp-profile-actions {
        justify-content: flex-start;
    }
    
    /* 2 Column Layout */
    .alp-profile-content {
        display: grid;
        grid-template-columns: 1fr 340px;
        gap: 28px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 28px;
    }
    
    .alp-profile-main {
        margin-bottom: 0;
    }
}

/* ============================================
   RESPONSIVE - LARGE (1280px+)
   ============================================ */
@media (min-width: 1280px) {
    .alp-profile-content {
        grid-template-columns: 1fr 380px;
        gap: 32px;
        padding: 32px;
    }
}
