/**
 * PropertyConnector - Agent Profile Shortcodes CSS
 *
 * Standalone styles for shortcodes that work anywhere on the site,
 * not just on the About page. These provide base styling with
 * CSS custom properties for easy theming.
 *
 * @package PropertyConnector
 * @since   1.4.0
 */

/* ==========================================================================
   Base Variables (can be overridden by theme)
   ========================================================================== */

.pc-agent-name,
.pc-agent-photo,
.pc-agent-bio,
.pc-agent-contact,
.pc-agent-social,
.pc-agent-awards,
.pc-agent-card,
.pc-service-areas,
.pc-specialties,
.pc-designations {
    --pc-primary: #1e3a5f;
    --pc-primary-light: #2d5a8a;
    --pc-accent: #c9a227;
    --pc-text: #333333;
    --pc-text-light: #666666;
    --pc-bg: #f8f9fa;
    --pc-white: #ffffff;
    --pc-border: #e0e0e0;
    --pc-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    
    font-family: inherit;
    line-height: 1.6;
    box-sizing: border-box;
}

/* ==========================================================================
   Agent Name Shortcode
   ========================================================================== */

.pc-agent-name {
    color: var(--pc-text);
    font-weight: 600;
}

.pc-agent-name a {
    color: inherit;
    text-decoration: none;
}

.pc-agent-name a:hover {
    color: var(--pc-primary);
}

/* ==========================================================================
   Agent Photo Shortcode
   ========================================================================== */

.pc-agent-photo {
    display: inline-block;
}

.pc-agent-photo img,
.pc-agent-photo .pc-agent-photo-img {
    display: block;
    max-width: 100%;
    height: auto;
}

.pc-agent-photo.pc-photo-circle img,
.pc-agent-photo.pc-photo-circle .pc-agent-photo-img {
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top; /* Focus on face/head area */
}

.pc-agent-photo.pc-photo-square img,
.pc-agent-photo.pc-photo-square .pc-agent-photo-img {
    border-radius: 8px;
}

/* ==========================================================================
   Agent Bio Shortcode
   ========================================================================== */

.pc-agent-bio {
    color: var(--pc-text);
    line-height: 1.8;
}

.pc-agent-bio p {
    margin-bottom: 1em;
}

.pc-agent-bio p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Agent Contact Shortcode
   ========================================================================== */

.pc-agent-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pc-agent-contact .pc-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pc-agent-contact .pc-contact-icon {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
}

.pc-agent-contact a {
    color: var(--pc-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pc-agent-contact a:hover {
    color: var(--pc-primary-light);
    text-decoration: underline;
}

/* Inline style */
.pc-agent-contact.pc-contact-inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
}

.pc-agent-contact.pc-contact-inline .pc-contact-item::after {
    content: '|';
    margin-left: 15px;
    color: var(--pc-border);
}

.pc-agent-contact.pc-contact-inline .pc-contact-item:last-child::after {
    display: none;
}

/* ==========================================================================
   Agent Social Shortcode
   ========================================================================== */

.pc-agent-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.pc-agent-social .pc-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--pc-text);
    transition: all 0.2s ease;
}

.pc-agent-social .pc-social-link svg {
    fill: currentColor;
    width: 20px;
    height: 20px;
}

/* Icons style (default) */
.pc-agent-social.pc-social-icons .pc-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pc-bg);
}

.pc-agent-social.pc-social-icons .pc-social-link:hover {
    background: var(--pc-primary);
    color: var(--pc-white);
    transform: translateY(-2px);
}

/* Size variants */
.pc-agent-social.pc-social-small .pc-social-link {
    width: 32px;
    height: 32px;
}

.pc-agent-social.pc-social-small .pc-social-link svg {
    width: 16px;
    height: 16px;
}

.pc-agent-social.pc-social-large .pc-social-link {
    width: 48px;
    height: 48px;
}

.pc-agent-social.pc-social-large .pc-social-link svg {
    width: 24px;
    height: 24px;
}

/* Buttons style */
.pc-agent-social.pc-social-buttons .pc-social-link {
    padding: 8px 16px;
    border-radius: 6px;
    background: var(--pc-bg);
    gap: 8px;
}

.pc-agent-social.pc-social-buttons .pc-social-link:hover {
    background: var(--pc-primary);
    color: var(--pc-white);
}

/* List style */
.pc-agent-social.pc-social-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.pc-agent-social.pc-social-list .pc-social-link {
    padding: 5px 0;
}

.pc-agent-social.pc-social-list .pc-social-link:hover {
    color: var(--pc-primary);
}

/* Platform-specific hover colors */
.pc-agent-social .pc-social-facebook:hover { color: #1877f2; background-color: rgba(24, 119, 242, 0.1); }
.pc-agent-social .pc-social-instagram:hover { color: #e4405f; background-color: rgba(228, 64, 95, 0.1); }
.pc-agent-social .pc-social-linkedin:hover { color: #0a66c2; background-color: rgba(10, 102, 194, 0.1); }
.pc-agent-social .pc-social-youtube:hover { color: #ff0000; background-color: rgba(255, 0, 0, 0.1); }
.pc-agent-social .pc-social-tiktok:hover { color: #000000; background-color: rgba(0, 0, 0, 0.1); }
.pc-agent-social .pc-social-whatsapp:hover { color: #25d366; background-color: rgba(37, 211, 102, 0.1); }

.pc-agent-social.pc-social-icons .pc-social-facebook:hover,
.pc-agent-social.pc-social-buttons .pc-social-facebook:hover { background-color: #1877f2; color: white; }
.pc-agent-social.pc-social-icons .pc-social-instagram:hover,
.pc-agent-social.pc-social-buttons .pc-social-instagram:hover { background-color: #e4405f; color: white; }
.pc-agent-social.pc-social-icons .pc-social-linkedin:hover,
.pc-agent-social.pc-social-buttons .pc-social-linkedin:hover { background-color: #0a66c2; color: white; }
.pc-agent-social.pc-social-icons .pc-social-youtube:hover,
.pc-agent-social.pc-social-buttons .pc-social-youtube:hover { background-color: #ff0000; color: white; }
.pc-agent-social.pc-social-icons .pc-social-tiktok:hover,
.pc-agent-social.pc-social-buttons .pc-social-tiktok:hover { background-color: #000000; color: white; }
.pc-agent-social.pc-social-icons .pc-social-whatsapp:hover,
.pc-agent-social.pc-social-buttons .pc-social-whatsapp:hover { background-color: #25d366; color: white; }

/* ==========================================================================
   Agent Awards Shortcode
   ========================================================================== */

.pc-agent-awards {
    color: var(--pc-text);
}

.pc-agent-awards .pc-awards-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--pc-text);
}

/* Timeline style */
.pc-agent-awards.pc-awards-timeline .pc-awards-timeline {
    position: relative;
    padding-left: 80px;
}

.pc-agent-awards.pc-awards-timeline .pc-awards-timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--pc-primary), var(--pc-accent));
    border-radius: 3px;
}

.pc-agent-awards .pc-award-item {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.pc-agent-awards .pc-award-item:last-child {
    margin-bottom: 0;
}

.pc-agent-awards.pc-awards-timeline .pc-award-year {
    position: absolute;
    left: -80px;
    width: 50px;
    height: 50px;
    background: var(--pc-primary);
    color: var(--pc-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    z-index: 1;
}

.pc-agent-awards .pc-award-content {
    background: var(--pc-white);
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: var(--pc-shadow);
    flex: 1;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.pc-agent-awards .pc-award-logo {
    flex-shrink: 0;
}

.pc-agent-awards .pc-award-logo img {
    width: auto;
    height: auto;
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

.pc-agent-awards .pc-award-details {
    flex: 1;
}

.pc-agent-awards .pc-award-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--pc-text);
}

.pc-agent-awards .pc-award-issuer {
    font-size: 13px;
    color: var(--pc-accent);
    font-weight: 500;
    margin: 0 0 6px 0;
}

.pc-agent-awards .pc-award-description {
    font-size: 13px;
    color: var(--pc-text-light);
    margin: 0;
    line-height: 1.5;
}

/* Grid style */
.pc-agent-awards.pc-awards-grid .pc-awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.pc-agent-awards.pc-awards-grid .pc-award-card {
    background: var(--pc-white);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: var(--pc-shadow);
}

.pc-agent-awards.pc-awards-grid .pc-award-card .pc-award-logo img {
    width: auto;
    height: auto;
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
}

.pc-agent-awards.pc-awards-grid .pc-award-card .pc-award-year {
    font-size: 14px;
    color: var(--pc-accent);
    font-weight: 600;
    margin-bottom: 5px;
}

.pc-agent-awards.pc-awards-grid .pc-award-card .pc-award-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.pc-agent-awards.pc-awards-grid .pc-award-card .pc-award-issuer {
    font-size: 12px;
    color: var(--pc-text-light);
}

/* List style */
.pc-agent-awards.pc-awards-list .pc-awards-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pc-agent-awards.pc-awards-list .pc-award-list-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--pc-border);
    display: flex;
    align-items: center;
    gap: 15px;
}

.pc-agent-awards.pc-awards-list .pc-award-list-item:last-child {
    border-bottom: none;
}

.pc-agent-awards.pc-awards-list .pc-award-year {
    font-weight: 700;
    color: var(--pc-primary);
    min-width: 50px;
}

.pc-agent-awards.pc-awards-list .pc-award-title {
    font-weight: 600;
}

.pc-agent-awards.pc-awards-list .pc-award-meta {
    color: var(--pc-text-light);
    font-size: 14px;
    margin-left: auto;
}

/* ==========================================================================
   Agent Card Shortcode
   ========================================================================== */

.pc-agent-card {
    background: var(--pc-white);
    border-radius: 12px;
    box-shadow: var(--pc-shadow);
    overflow: hidden;
}

/* Standard card */
.pc-agent-card.pc-card-standard {
    max-width: 350px;
}

.pc-agent-card.pc-card-standard .pc-agent-photo-wrapper {
    text-align: center;
    padding: 25px 20px 0;
}

.pc-agent-card.pc-card-standard .pc-agent-photo-wrapper img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
}

.pc-agent-card .pc-card-content {
    padding: 20px;
    text-align: center;
}

.pc-agent-card .pc-card-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--pc-text);
    margin: 0 0 5px 0;
}

.pc-agent-card .pc-card-tagline {
    font-size: 14px;
    color: var(--pc-text-light);
    font-style: italic;
    margin: 0 0 10px 0;
}

.pc-agent-card .pc-card-brokerage {
    font-size: 13px;
    color: var(--pc-text-light);
    margin: 0 0 15px 0;
}

.pc-agent-card .pc-card-contact {
    margin-bottom: 15px;
}

.pc-agent-card .pc-card-contact .pc-contact-item {
    justify-content: center;
    margin-bottom: 5px;
}

.pc-agent-card .pc-card-social {
    justify-content: center;
}

/* Compact card */
.pc-agent-card.pc-card-compact {
    max-width: 280px;
}

.pc-agent-card.pc-card-compact .pc-agent-photo-wrapper img {
    width: 80px;
    height: 80px;
}

.pc-agent-card.pc-card-compact .pc-card-content {
    padding: 15px;
}

.pc-agent-card.pc-card-compact .pc-card-name {
    font-size: 16px;
}

/* Horizontal card */
.pc-agent-card.pc-card-horizontal {
    display: flex;
    max-width: 450px;
}

.pc-agent-card.pc-card-horizontal .pc-agent-photo-wrapper {
    padding: 20px;
    display: flex;
    align-items: center;
}

.pc-agent-card.pc-card-horizontal .pc-agent-photo-wrapper img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

.pc-agent-card.pc-card-horizontal .pc-card-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ==========================================================================
   Service Areas Shortcode
   ========================================================================== */

.pc-service-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pc-service-areas.pc-areas-tags .pc-area-tag {
    background: var(--pc-bg);
    color: var(--pc-text);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid var(--pc-border);
    transition: all 0.2s ease;
}

.pc-service-areas.pc-areas-tags .pc-area-tag:hover {
    background: var(--pc-primary);
    color: var(--pc-white);
    border-color: var(--pc-primary);
}

.pc-service-areas.pc-areas-list {
    flex-direction: column;
    gap: 5px;
}

.pc-service-areas.pc-areas-list .pc-area-item {
    padding: 5px 0;
}

.pc-service-areas.pc-areas-inline {
    display: inline;
}

.pc-service-areas.pc-areas-inline .pc-area-item:not(:last-child)::after {
    content: ', ';
}

/* ==========================================================================
   Specialties Shortcode
   ========================================================================== */

.pc-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pc-specialties.pc-specialties-tags .pc-specialty-tag {
    background: var(--pc-bg);
    color: var(--pc-text);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid var(--pc-border);
    transition: all 0.2s ease;
}

.pc-specialties.pc-specialties-tags .pc-specialty-tag:hover {
    background: var(--pc-primary);
    color: var(--pc-white);
    border-color: var(--pc-primary);
}

.pc-specialties.pc-specialties-list {
    flex-direction: column;
    gap: 5px;
}

.pc-specialties.pc-specialties-inline {
    display: inline;
}

.pc-specialties.pc-specialties-inline .pc-specialty-item:not(:last-child)::after {
    content: ', ';
}

/* ==========================================================================
   Designations Shortcode
   ========================================================================== */

.pc-designations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pc-designations.pc-designations-badges .pc-designation-badge {
    background: var(--pc-primary);
    color: var(--pc-white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.pc-designations.pc-designations-list {
    flex-direction: column;
    gap: 5px;
}

.pc-designations.pc-designations-inline {
    display: inline;
}

.pc-designations.pc-designations-inline .pc-designation-item:not(:last-child)::after {
    content: ', ';
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
    .pc-agent-card.pc-card-horizontal {
        flex-direction: column;
    }
    
    .pc-agent-card.pc-card-horizontal .pc-card-content {
        text-align: center;
    }
    
    .pc-agent-awards.pc-awards-timeline .pc-awards-timeline {
        padding-left: 60px;
    }
    
    .pc-agent-awards.pc-awards-timeline .pc-awards-timeline::before {
        left: 35px;
    }
    
    .pc-agent-awards.pc-awards-timeline .pc-award-year {
        left: -60px;
        width: 40px;
        height: 40px;
        font-size: 12px;
    }
}
