/**
 * Shareable Profile Styles
 * 
 * Main stylesheet for the public-facing shareable profile card.
 * Manages layout, typography, colors, and responsive behavior.
 * 
 * @package 247empowerment
 * @subpackage Styles
 */

/* ================================================
   TYPOGRAPHY & DEFAULTS
   ================================================ */

.shareable-profile-page {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
}

/* ================================================
   LAYOUT & CONTAINER
   ================================================ */

.profile-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.profile-card {
    width: 650px;
    max-width: 100%;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    z-index: 99;
}

.profile-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ================================================
   QR CODE SECTION
   ================================================ */

.profile-qr-section {
    padding: 24px;
    text-align: center;
    background-color: #fafafa;
    border-bottom: 1px solid #efefef;
}

.qr-link {
    display: inline-block;
    text-decoration: none;
}

.qr-image {
    max-width: 180px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.qr-link:hover .qr-image {
    transform: scale(1.05);
}

/* ================================================
   HEADER & BRAND BAR
   ================================================ */

.profile-header {
    position: relative;
    padding: 40px 20px;
    min-height: 180px;
    background: linear-gradient(
        90deg,
        rgba(5, 72, 156, 1) 0%,
        rgba(102, 38, 203, 1) 44%,
        rgba(208, 0, 255, 1) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: -1;
}

.brand-name {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    text-align: center;
    z-index: 2;
    position: relative;
    letter-spacing: 0.5px;
}

.brand-logo {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: 120px;
    width: auto;
    object-fit: contain;
}

/* ================================================
   MAIN PROFILE CONTENT
   ================================================ */

.profile-main {
    padding: 24px;
    text-align: center;
}

/* ================================================
   PROFILE IMAGE
   ================================================ */

.profile-image-container {
    margin: 0;
    padding: 0;
    margin-bottom: 20px;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
    display: block;
    margin: -80px auto 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

/* ================================================
   PROFILE NAME & DESIGNATION
   ================================================ */

.profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 20px 0 8px;
    line-height: 1.3;
    word-break: break-word;
}

.profile-designation {
    font-size: 15px;
    color: #0d47a1;
    font-weight: 500;
    margin: 0 0 12px;
    letter-spacing: 0.3px;
}

/* ================================================
   PROFILE BIO
   ================================================ */

.profile-bio {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 16px;
    padding: 0 12px;
}

/* ================================================
   KEYWORDS & TAGS
   ================================================ */

.profile-keywords,
.profile-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
    align-items: center;
}

.keyword-badge {
    background-color: #f0f0f0;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.keyword-badge:hover {
    background-color: #e0e0e0;
}

.hashtag-badge {
    background-color: #f5f5f5;
    color: #1a1a1a;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid #e0e0e0;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.hashtag-badge:hover {
    border-color: #0d47a1;
    color: #0d47a1;
}

/* ================================================
   LOCATION
   ================================================ */

.profile-location {
    font-size: 13px;
    color: #666;
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.location-icon {
    font-size: 16px;
    display: inline-block;
}

/* ================================================
   CALL-TO-ACTION BUTTONS
   ================================================ */

.profile-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.btn:focus {
    outline: 2px solid #0d47a1;
    outline-offset: 2px;
}

.btn-primary {
    background-color: #0d47a1;
    color: white;
}

.btn-primary:hover {
    background-color: #0a3880;
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background-color: transparent;
    color: #0d47a1;
    border: 1px solid #0d47a1;
}

.btn-secondary:hover {
    background-color: #0d47a1;
    color: white;
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.2);
}

.btn-secondary:active {
    transform: translateY(1px);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 768px) {
    .profile-card {
        border-radius: 16px;
    }

    .profile-header {
        min-height: 140px;
        padding: 30px 15px;
    }

    .brand-name {
        font-size: 18px;
    }

    .brand-logo {
        height: 80px;
        right: 10px;
    }

    .profile-main {
        padding: 16px;
    }

    .profile-image {
        width: 100px;
        height: 100px;
        margin-top: -60px;
    }

    .profile-name {
        font-size: 18px;
        margin: 16px 0 6px;
    }

    .profile-designation {
        font-size: 14px;
    }

    .profile-bio {
        font-size: 13px;
        margin: 0 0 12px;
        padding: 0 8px;
    }

    .profile-keywords,
    .profile-hashtags {
        gap: 6px;
        margin-bottom: 12px;
    }

    .keyword-badge,
    .hashtag-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 110px;
        flex: 1;
        max-width: calc(50% - 6px);
    }

    .profile-cta {
        gap: 8px;
        margin-top: 16px;
    }

    .qr-image {
        max-width: 140px;
    }

    .profile-qr-section {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .profile-container {
        padding: 10px;
        min-height: calc(100vh - 20px);
    }

    .profile-card {
        border-radius: 12px;
    }

    .profile-header {
        min-height: 120px;
        padding: 20px 10px;
    }

    .brand-name {
        font-size: 16px;
    }

    .brand-logo {
        height: 60px;
        right: 8px;
    }

    .profile-main {
        padding: 12px;
    }

    .profile-image {
        width: 80px;
        height: 80px;
        margin-top: -50px;
    }

    .profile-name {
        font-size: 16px;
        margin: 12px 0 4px;
    }

    .profile-designation {
        font-size: 12px;
    }

    .profile-bio {
        font-size: 12px;
        margin: 0 0 8px;
        padding: 0;
        line-height: 1.5;
    }

    .profile-keywords,
    .profile-hashtags {
        gap: 4px;
        margin-bottom: 8px;
    }

    .keyword-badge,
    .hashtag-badge {
        font-size: 10px;
        padding: 4px 8px;
    }

    .profile-location {
        font-size: 12px;
        margin: 8px 0;
    }

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

    .btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 100%;
        max-width: 100%;
        margin-bottom: 6px;
    }

    .btn:last-child {
        margin-bottom: 0;
    }

    .profile-cta {
        flex-direction: column;
        gap: 6px;
        margin-top: 12px;
    }

    .qr-image {
        max-width: 120px;
    }

    .profile-qr-section {
        padding: 12px;
    }
}

/* ================================================
   ACCESSIBILITY
   ================================================ */

@media (prefers-reduced-motion: reduce) {
    .profile-image,
    .qr-image,
    .keyword-badge,
    .hashtag-badge,
    .btn {
        transition: none;
    }
}

@media (prefers-color-scheme: dark) {
    .shareable-profile-page {
        background-color: #1a1a1a;
    }

    .profile-card {
        background: #2a2a2a;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    .profile-qr-section {
        background-color: #1f1f1f;
        border-bottom-color: #333;
    }

    .profile-name {
        color: #e5e5e5;
    }

    .profile-bio,
    .profile-location {
        color: #aaa;
    }

    .keyword-badge {
        background-color: #333;
        color: #aaa;
    }

    .keyword-badge:hover {
        background-color: #404040;
    }

    .hashtag-badge {
        background-color: #2f2f2f;
        color: #bbb;
        border-color: #404040;
    }

    .hashtag-badge:hover {
        border-color: #0d47a1;
    }
}
