/* ==========================================================================
   Petz Profile — Custom Profile Page Styles
   Version: 2.0.0 (Header Card Redesign)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Cover Image Enhancement
   -------------------------------------------------------------------------- */
.img-profile-cover {
    border-radius: 0 0 20px 20px;
}

/* Gradient fade at the bottom of the cover for smooth transition */
.profile-page-top:has(.petz-profile-header-card) .container-fluid,
.profile-page-top:has(.petz-profile-header-card) .container {
    position: relative;
}
.profile-page-top:has(.petz-profile-header-card) .container-fluid::after,
.profile-page-top:has(.petz-profile-header-card) .container .col-12::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    border-radius: 0 0 20px 20px;
}

/* --------------------------------------------------------------------------
   0a. Header Card (Overlapping Cover Image)
   -------------------------------------------------------------------------- */
.petz-profile-header-card {
    position: relative;
    z-index: 10;
    margin-top: -80px;
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
    border-top: 3px solid var(--mds-color-main);
    padding: 1.5rem 2rem;
}

.petz-profile-header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Avatar */
.petz-profile-avatar-wrap {
    flex-shrink: 0;
    position: relative;
}

.petz-profile-avatar-wrap {
    margin-top: -30px; /* Avatar break-out effect */
}

.petz-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    object-fit: cover;
    transition: transform 0.3s ease;
}
.petz-profile-avatar:hover {
    transform: scale(1.05);
}

.petz-profile-verified {
    position: absolute;
    bottom: 4px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.petz-profile-verified svg {
    width: 20px;
    height: 20px;
}

/* Info (center block) */
.petz-profile-header-info {
    flex: 1;
    min-width: 0;
}

.petz-profile-header-name {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.3rem;
    color: #222;
    word-break: break-word;
}

.petz-profile-header-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: #666;
}

.petz-profile-header-meta .profile-type-badge {
    margin-left: 0;
}

.petz-profile-meta-sep {
    color: #ccc;
    font-weight: 700;
}

.petz-profile-member-since {
    color: #888;
    font-size: 0.85rem;
}

/* Rating */
.petz-profile-header-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.petz-profile-rating-score {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
}

.petz-profile-header-rating .rating {
    float: none;
    display: inline-flex;
}
/* Gold rating stars */
.petz-profile-header-rating .rating svg,
.petz-profile-header-rating .rating i {
    color: #f5a623;
}

.petz-profile-rating-count {
    font-size: 0.85rem;
    color: #888;
}

.petz-profile-header-sales {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.15rem;
}

/* Actions (right side) */
.petz-profile-header-actions {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.petz-profile-header-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.petz-profile-header-btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.9rem !important;
    white-space: nowrap;
}

/* Outline variant for follow button */
.btn-custom-outline.petz-profile-header-btn {
    background: transparent !important;
    border: 2px solid var(--mds-color-main) !important;
    color: var(--mds-color-main) !important;
}
.btn-custom-outline.petz-profile-header-btn:hover {
    background: var(--mds-color-main) !important;
    color: #fff !important;
}

/* Social icons */
.petz-profile-header-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.petz-profile-social-link {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    color: #555;
    border-radius: 50%;
    transition: all 0.25s ease;
    font-size: 15px;
}
.petz-profile-social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* Social brand colors on hover */
.petz-profile-social-link[title="facebook"]:hover { background: #1877f2; color: #fff; }
.petz-profile-social-link[title="instagram"]:hover { background: #e1306c; color: #fff; }
.petz-profile-social-link[title="twitter"]:hover,
.petz-profile-social-link[title="x-twitter"]:hover { background: #1da1f2; color: #fff; }
.petz-profile-social-link[title="youtube"]:hover { background: #ff0000; color: #fff; }
.petz-profile-social-link[title="tiktok"]:hover { background: #010101; color: #fff; }
.petz-profile-social-link[title="linkedin"]:hover { background: #0077b5; color: #fff; }
.petz-profile-social-link[title="pinterest"]:hover { background: #e60023; color: #fff; }
.petz-profile-social-link[title="RSS"]:hover { background: #f26522; color: #fff; }
.petz-profile-social-link[title="website"]:hover { background: var(--mds-color-main); color: #fff; }

/* Header Card Responsive */

/* Override Modesy profile-page-top float when header card is present */
.profile-page-top:has(.petz-profile-header-card) {
    float: none;
    display: block;
    position: relative;
}

/* --------------------------------------------------------------------------
   0b. Content Layout (2-Column: About + Sidebar)
   -------------------------------------------------------------------------- */
.profile-content-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    position: relative;
    margin-bottom: 30px;
}

/* Left Column: About */
.profile-main-column {
    flex: 1;
    min-width: 0;
}

/* Right Column: Sidebar info */
.profile-sidebar-column {
    width: 320px;
    flex-shrink: 0;
}

/* Mobile Stacking moved to petz-mobile.css */


/* --------------------------------------------------------------------------
   1. Sidebar Styling (Vertical Mockup Style)
   -------------------------------------------------------------------------- */
.profile-info-cards-sidebar {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
}

.profile-sidebar-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.profile-sidebar-item:hover {
    background: #f8faf8;
    transform: translateX(4px);
}
.profile-sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.profile-sidebar-item:first-child {
    padding-top: 0;
}

.profile-sidebar-item .sidebar-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f0faf0 0%, #f4f6f8 100%);
    color: var(--mds-color-main);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    font-size: 16px;
}
.profile-sidebar-item:hover .sidebar-icon {
    background: var(--mds-color-main);
    color: #fff;
}

.profile-sidebar-item .sidebar-text {
    display: flex;
    flex-direction: column;
}
.profile-sidebar-item .label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
}
.profile-sidebar-item .value {
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}
.profile-sidebar-item .value-multiline {
    white-space: pre-line;
}

/* Business Hours Card (standalone below sidebar) */
.profile-hours-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
    margin-top: 1.5rem;
    overflow: hidden;
}
.profile-hours-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}
.profile-hours-card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f0faf0 0%, #f4f6f8 100%);
    color: var(--mds-color-main);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}
.profile-hours-card-title {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.profile-hours-table {
    width: 100%;
    border-collapse: collapse;
}
.profile-hours-table tr {
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
}
.profile-hours-table tr:last-child {
    border-bottom: none;
}
.profile-hours-table tr:hover {
    background: #fafcfa;
}
.profile-hours-table td {
    padding: 0.6rem 1.5rem;
    vertical-align: middle;
}
.profile-hours-table .ph-day {
    font-weight: 600;
    color: #444;
    white-space: nowrap;
    width: 1%;
    padding-right: 1rem;
    font-size: 0.88rem;
}
.profile-hours-table .ph-time {
    text-align: right;
    color: #333;
    font-weight: 500;
    font-size: 0.88rem;
    line-height: 1.5;
}
.profile-hours-table tr.ph-closed .ph-day {
    color: #bbb;
}
.ph-closed-label {
    color: #ccc;
    font-style: italic;
    font-weight: 400;
    font-size: 0.82rem;
}
.profile-hours-card .profile-appointment-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.6rem 1.5rem;
    background: #fffaf0;
    border-top: 1px solid #f0f0f0;
    color: #e65100;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Sidebar Social */
.social-sidebar ul {
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 1.5rem 0 0;
    list-style: none;
    flex-wrap: wrap;
}
.social-sidebar ul li a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    color: #555;
    border-radius: 50%;
    transition: all 0.2s;
}
.social-sidebar ul li a:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   2. Donation Strip (Sleek Green Bar)
   -------------------------------------------------------------------------- */
.donation-teaser-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #fff;
    color: #333;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin: 2rem 0 3rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
    border-left: 4px solid var(--mds-color-main);
    text-decoration: none;
    transition: all 0.25s ease;
}

.donation-teaser-strip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    color: #333;
    border-left-color: #1b5e20;
}

.donation-teaser-strip .teaser-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.donation-teaser-strip .teaser-icon-heart {
    font-size: 20px;
    color: var(--mds-color-main);
    animation: petz-heart-pulse 2s ease-in-out infinite;
}

@keyframes petz-heart-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.donation-teaser-strip .teaser-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
}

.donation-teaser-strip .teaser-button {
    background: var(--mds-color-main);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    transition: background 0.2s;
}
.donation-teaser-strip:hover .teaser-button {
    background: #1b5e20;
}




/* --------------------------------------------------------------------------
   3. Main Column Tweaks
   -------------------------------------------------------------------------- */
.profile-details .username {
    margin-bottom: 0.5rem;
}
.profile-about-rich {
    margin-top: 0;
    padding: 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
}
.profile-about-section-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid transparent;
    background: linear-gradient(to right, var(--petz-primary, #5cb85c), transparent) no-repeat left bottom / 100% 2px;
    display: block;
    width: 100%;
    color: #222;
    font-weight: 700;
}

/* Read More / Show Less */
.profile-about-wrapper {
    position: relative;
}
.profile-about-collapsible {
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.profile-about-collapsible.collapsed {
    overflow: hidden;
}
.profile-about-fade {
    display: none;
    position: absolute;
    bottom: 45px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, #fff 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}
.profile-about-rich .btn-read-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 1rem auto 0;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--mds-color-main);
    background: transparent;
    color: var(--mds-color-main);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}
.profile-about-rich .btn-read-more:hover {
    background: var(--mds-color-main);
    color: #fff;
}
.profile-about-rich .btn-read-more .read-more-icon {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.profile-about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

/* --------------------------------------------------------------------------
   4. Donation Tab Content
   -------------------------------------------------------------------------- */
.donation-tab-content {
    padding: 2rem 0 4rem;
}

.donation-tab-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.donation-tab-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 0.5rem;
}
.donation-tab-header h2 i {
    color: var(--mds-color-main);
    margin-right: 0.25rem;
}
.donation-tab-header p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.donation-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Card Base */
.donation-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.donation-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

/* Colored top accent per card type */
.donation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
}
.donation-card--bank::before  { background: linear-gradient(90deg, #1565c0, #42a5f5); }
.donation-card--iris::before  { background: linear-gradient(90deg, #7b1fa2, #ba68c8); }
.donation-card--paypal::before { background: linear-gradient(90deg, #003087, #009cde); }
.donation-card--custom::before { background: linear-gradient(90deg, #e65100, #ff9800); }

/* Card Header */
.donation-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.donation-card-header .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
}
.donation-card-header .card-icon svg {
    width: 36px;
    height: 36px;
}

/* Custom link uses outline icon, needs subtle bg */
.donation-card--custom .card-icon {
    background: #fff3e0;
    border-radius: 12px;
}
.donation-card--custom .card-icon svg {
    width: 22px;
    height: 22px;
    color: #e65100;
}

.donation-card-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    line-height: 1.3;
}
.card-subtitle {
    font-size: 0.75rem;
    color: #999;
    font-weight: 500;
}

/* Card Body */
.donation-card-body {
    padding: 1rem 1.5rem;
    flex: 1;
}

.donation-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0,0,0,.04);
    gap: 0.5rem;
}
.donation-field:last-child {
    border-bottom: none;
}

.donation-field-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.donation-field-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #aaa;
    margin-bottom: 2px;
}
.donation-field-value {
    font-size: 0.92rem;
    color: #333;
    font-weight: 600;
    word-break: break-all;
}
.donation-field-mono {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

/* Copy buttons */
.btn-copy {
    background: #f4f6f8;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 8px;
    padding: 6px 8px;
    cursor: pointer;
    color: #888;
    transition: all 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    font-size: 13px;
}
.btn-copy:hover { background: #e9ecef; color: #333; }
.btn-copy.copied { background: #e8f5e9; border-color: #a5d6a7; color: #2e7d32; }
.btn-copy svg { width: 14px; height: 14px; }
.btn-copy-all svg { width: 14px; height: 14px; }

/* Card Footer */
.donation-card-footer {
    padding: 0 1.5rem 1.25rem;
}
.btn-copy-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.55rem 1rem;
    background: #f4f6f8;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 10px;
    color: #555;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-copy-all:hover { background: #e9ecef; color: #222; }
.btn-copy-all.copied { background: #e8f5e9; border-color: #a5d6a7; color: #2e7d32; }

/* CTA body for PayPal / Custom */
.donation-card-body--cta {
    display: flex;
    align-items: flex-end;
    padding-bottom: 1.25rem;
}

.btn-donate-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    width: 100%;
    color: #fff;
}
.btn-donate-link svg {
    width: 18px;
    height: 18px;
}
.btn-donate-link:hover {
    transform: translateY(-2px);
    color: #fff;
}

.btn-donate-paypal { background: linear-gradient(135deg, #003087, #009cde); }
.btn-donate-paypal:hover { box-shadow: 0 6px 16px rgba(0,48,135,0.3); }

.btn-donate-custom { background: linear-gradient(135deg, #e65100, #ff9800); }
.btn-donate-custom:hover { box-shadow: 0 6px 16px rgba(230,81,0,0.3); }


/* --------------------------------------------------------------------------
   5. Service Provider — Contact Row
   -------------------------------------------------------------------------- */
.profile-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.25rem 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(0,0,0,.06);
    border-bottom: 1px solid rgba(0,0,0,.06);
    /* Modesy compat: parent is table-cell with floated children */
    float: left;
    width: 100%;
    clear: both;
}

.profile-contact-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #888;
    vertical-align: middle;
}

/* about section info row SVG sizing */
.user-contact .info svg {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    color: #888;
}

/* --------------------------------------------------------------------------
   6. User Type Badge
   -------------------------------------------------------------------------- */
.profile-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 10px;
    vertical-align: middle;
}

.profile-type-badge.badge-org {
    background: #e6fcf5;
    color: #0ca678;
}

.profile-type-badge.badge-service {
    background: #e3f2fd;
    color: #2196f3;
}

.profile-type-badge.badge-member {
    background: #e8eaf6;
    color: #5c6bc0;
}

/* --------------------------------------------------------------------------
   7. Responsive Overrides (Moved to petz-mobile.css)
   -------------------------------------------------------------------------- */
