/**
 * File: danh-ba/assets/lawyer.css
 * Stylesheet cho module Danh bạ luật sư
 */

/* ==========================================================================
   Archive Page - List Items
   ========================================================================== */

/* Common box */
.common-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.common-box:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Media layout */
.list-media.media {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
}

.media-picture.serp-card {
    flex-shrink: 0;
}

.rounded-circle-100 {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}

.rounded-circle-100 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Position checkfill */
.pos-checkfill {
    position: relative;
    display: block;
}

.pos-checkfill::after {
    content: '✓';
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* Media user info */
.media-user-info {
    flex: 1;
    min-width: 0;
}

.media-user-info h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.media-user-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.media-user-info h3 a:hover {
    color: #ff4500;
}

.media-user-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Rating stars */
.rating-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.rating-stars {
    position: relative;
    display: inline-block;
    font-size: 18px;
    line-height: 1;
}

.empty-stars,
.filled-stars {
    white-space: nowrap;
}

.empty-stars {
    color: #ddd;
}

.filled-stars {
    position: absolute;
    top: 0;
    left: 0;
    color: #ffc107;
    overflow: hidden;
    white-space: nowrap;
}

.rating-input {
    display: none;
}

.badge-count,
.badge-stars {
    font-size: 13px;
    color: #666;
}

/* Badges */
.badge-mlaw {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 5px;
}

.badge-mlaw i {
    font-size: 14px;
}

/* Contact buttons */
.media-user-ncontact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

.btn-normal,
.btn-ncontact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #ff4500;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-normal:hover,
.btn-ncontact:hover {
    background: #e03e00;
    transform: translateY(-1px);
}

.btn-normal span {
    font-size: 12px;
    margin-bottom: 5px;
}

.btn-normal i,
.btn-ncontact i {
    margin-left: 5px;
}

.mess-now-button {
    background: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mess-now-button:hover {
    background: #0056b3;
}

/* Mobile buttons */
.mobile-button-show {
    display: none;
    gap: 10px;
    margin-top: 15px;
}

.btn-normal-edit {
    flex: 1;
    padding: 10px;
    background: #007bff;
    color: #fff !important;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-normal-edit:hover {
    background: #0056b3;
}

/* Search box */
.search-lawer {
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.btn-searchs {
    width: 100%;
    padding: 10px 20px;
    background: #ff4500;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-searchs:hover {
    background: #e03e00;
}

/* Pills navigation */
.pill-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.pill-links-container a {
    padding: 8px 16px;
    background: #f8f9fa;
    color: #333;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.pill-links-container a:hover {
    background: #ff4500;
    color: #fff;
    border-color: #ff4500;
}

/* Title */
.find-namecate {
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 15px 0;
    color: #333;
    border-bottom: 2px solid #ff4500;
    padding-bottom: 10px;
}

.title-search-top h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.title-search-top span:last-child {
    color: #666;
    font-size: 16px;
    font-weight: 400;
}

/* Sort select */
.sort-select select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.pagination li {
    margin: 0;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination li.active a {
    background: #ff4500;
    color: #fff;
    border-color: #ff4500;
}

.pagination li a:hover:not(.active) {
    background: #f8f9fa;
    border-color: #ff4500;
}

.pagination li.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   Single Page - Detail
   ========================================================================== */

#theme-law {
    background: #f5f5f5;
    padding-bottom: 40px;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 15px 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.breadcrumb-item {
    font-size: 14px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    padding: 0 8px;
    color: #999;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #ff4500;
}

.breadcrumb-item.active {
    color: #333;
}

/* Detail head */
.detail-head {
    background: #fff;
    padding: 30px 0;
    margin-bottom: 30px;
}

.info-detail-lawer {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Box detail */
.box-detail {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 30px;
}

.box-detail-flex {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.detail-head-img {
    position: relative;
    flex-shrink: 0;
}

.thumbnail-detail {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
}

.thumbnail-detail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PRO badge */
.pro {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(255,215,0,0.4);
}

.icon-crown {
    display: inline-block;
    width: 1em;
    height: 1em;
}

.icon-crown::before {
    content: '👑';
}

/* Detail info */
.detail-info-head h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #333;
}

.detail-info-head .d-flex {
    margin-bottom: 10px;
}

.detail-info-head > span {
    font-size: 18px;
    font-weight: 600;
    margin-right: 10px;
}

.badge-check {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Box right contact */
.box-right-contact {
    margin-left: auto;
    min-width: 280px;
}

.lawer-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.sharelawer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    transition: all 0.3s;
}

.sharelawer:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hotline-lw {
    margin-top: 15px;
}

.btn-phoneuser {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #ff4500 0%, #ff6b35 100%);
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-phoneuser:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,69,0,0.3);
}

.btn-phoneuser span {
    font-size: 13px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.btn-phoneuser i {
    margin-right: 8px;
}

.mess-user {
    margin-top: 10px;
}

.btn-100 {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-100:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* Box lawyer contact (stats) */
.box-lawer-contact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.span-law-score {
    text-align: center;
    padding: 15px 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.span-law-score span:first-child {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.span-law-score span:last-child {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

/* Featured box */
.featured-box {
    margin: 30px 0;
}

.review-featured {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 100%;
}

.review-featured-page {
    position: relative;
    padding-left: 50px;
    margin-bottom: 20px;
}

.quote-circle {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-teal {
    background: #20c997;
}

.icon-open-double-quote-after-white::before {
    content: '"';
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.review-featured-page p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.review-feature-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-footer-name-section {
    font-weight: 600;
    color: #333;
}

.btn-allfeature {
    text-align: center;
    margin-top: 20px;
}

.btn-allfeature a {
    display: inline-block;
    padding: 10px 30px;
    background: #007bff;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-allfeature a:hover {
    background: #0056b3;
}

/* Detail contents */
.detail-contents {
    margin-top: 20px;
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    border: none;
}

.card-margin {
    margin-bottom: 20px;
}

.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0;
    border-radius: 8px 8px 0 0 !important;
}

.card-header h5 {
    margin: 0;
}

.card-header .btn-link {
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    border: none;
    background: transparent;
    display: block;
}

.card-header .btn-link:hover {
    color: #ff4500;
}

.card-body {
    padding: 25px;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.size-p {
    font-size: 15px;
}

/* Fee list */
.adv_box {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.adv_box:last-child {
    border-bottom: none;
}

.adv_box span:first-child {
    flex: 1;
    color: #333;
}

.adv_box span:last-child {
    font-weight: 600;
    color: #ff4500;
}

/* Gallery */
.swiper-detail-lawer {
    border-radius: 8px;
    overflow: hidden;
}

.swiper-detail-lawer img {
    width: 100%;
    height: auto;
    display: block;
}

.swiper-pagination {
    bottom: 10px !important;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #ff4500;
}

/* Vote box */
.box-vote {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.box-vote:last-child {
    border-bottom: none;
}

.use-vote {
    flex-shrink: 0;
}

.thumbnail-vote {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.vote-des {
    flex: 1;
}

.vote-name {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.vote-content {
    font-size: 14px;
    color: #555;
}

.vote-star {
    display: inline-block;
    margin-bottom: 8px;
}

.vote-content p {
    margin: 0;
    line-height: 1.6;
}

/* Review rating summary */
.review-rating {
    font-size: 48px;
    font-weight: 700;
    color: #ff4500;
    margin-right: 20px;
}

.review-star {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Modal */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 20px 25px;
}

.modal-title {
    font-weight: 600;
    font-size: 20px;
}

.modal-body {
    padding: 25px;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 15px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #ff4500;
    box-shadow: 0 0 0 0.2rem rgba(255,69,0,0.15);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {
    .box-lawer-contact {
        grid-template-columns: repeat(2, 1fr);
    }

    .d-md-none {
        display: block !important;
    }

    .d-none.d-md-block {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .list-media.media {
        flex-direction: column;
    }

    .mobile-button-show {
        display: flex !important;
    }

    .media-user-ncontact {
        display: none !important;
    }

    .box-detail-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .box-right-contact {
        width: 100%;
        margin-left: 0;
        min-width: auto;
    }

    .box-lawer-contact {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-info-head h1 {
        font-size: 22px;
    }

    .card-body {
        padding: 15px;
    }
}

@media (max-width: 575px) {
    .rounded-circle-100 {
        width: 80px;
        height: 80px;
    }

    .thumbnail-detail {
        width: 120px;
        height: 120px;
    }

    .pill-links-container {
        gap: 5px;
    }

    .pill-links-container a {
        padding: 6px 12px;
        font-size: 13px;
    }

    .pagination li a,
    .pagination li span {
        min-width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .review-rating {
        font-size: 36px;
    }

    .box-lawer-contact {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }

.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.align-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }

.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

.order-1 { order: 1 !important; }
.order-3 { order: 3 !important; }