/**
 * Royal Heritage Theme Styles
 * Elegant traditional Indian theme with gold accents
 */

/* =============================================
   EDIT BANNER (Profile Owner)
   ============================================= */

.sl-edit-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #C4965C 0%, #A67C52 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.sl-edit-banner__content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sl-edit-banner__icon {
    flex-shrink: 0;
}

.sl-edit-banner__text {
    font-size: 14px;
    font-weight: 500;
}

.sl-edit-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    color: #C4965C;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.sl-edit-banner__btn:hover {
    background: #FFF9F5;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Adjust body padding when banner is visible */
.theme-royal-heritage {
    padding-top: 48px;
}

@media (max-width: 768px) {
    .sl-edit-banner {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
        text-align: center;
    }

    .sl-edit-banner__btn {
        width: 100%;
        justify-content: center;
    }

    .theme-royal-heritage {
        padding-top: 88px;
    }
}

@media print {
    .sl-edit-banner {
        display: none;
    }

    .theme-royal-heritage {
        padding-top: 0;
    }
}

/* =============================================
   ROOT & TYPOGRAPHY
   ============================================= */

.theme-royal-heritage {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2C2416;
    background-color: #F5EBE0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.rh-profile {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #F5EBE0;
}

/* =============================================
   DECORATIVE WAVE
   ============================================= */

.rh-wave-decoration {
    text-align: center;
    margin-bottom: 40px;
}

/* =============================================
   HEADER
   ============================================= */

.rh-header {
    text-align: center;
    margin-bottom: 50px;
}

.rh-header__photo-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    border-radius: 50%;
    border: 4px solid #C4965C;
    padding: 6px;
    background: linear-gradient(135deg, #C4965C 0%, #E8D4B5 50%, #C4965C 100%);
    box-shadow: 0 8px 24px rgba(196, 150, 92, 0.2);
}

.rh-header__photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #F5EBE0;
}

.rh-header__name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 400;
    color: #2C2416;
    margin: 0 0 16px 0;
    letter-spacing: 0.5px;
}

.rh-header__tagline {
    font-size: 16px;
    font-style: italic;
    color: #6B5D4F;
    margin: 0 0 24px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.rh-header__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.rh-header__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #6B5D4F;
}

.rh-header__meta-item svg {
    stroke: #C4965C;
    flex-shrink: 0;
}

/* =============================================
   DECORATIVE DIVIDER
   ============================================= */

.rh-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 50px 0;
}

.rh-divider__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #C4965C, transparent);
}

.rh-divider__icon {
    flex-shrink: 0;
}

/* =============================================
   CONTENT & SECTIONS
   ============================================= */

.rh-content {
    margin-top: 40px;
}

.rh-section {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(44, 36, 22, 0.06);
}

.rh-section__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E8DDD0;
}

.rh-section__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F5EBE0 0%, #E8D4B5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rh-section__icon svg {
    width: 20px;
    height: 20px;
    stroke: #C4965C;
    fill: none;
}

.rh-section__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 500;
    color: #2C2416;
    margin: 0;
}

/* =============================================
   PERSONAL DETAILS GRID
   ============================================= */

.rh-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.rh-detail-item {
    padding: 0;
}

.rh-detail-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #8B7A6A;
    margin-bottom: 6px;
    display: block;
}

.rh-detail-value {
    font-size: 16px;
    font-weight: 500;
    color: #2C2416;
    display: block;
}

/* =============================================
   FAMILY BACKGROUND
   ============================================= */

.rh-family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.rh-family-card {
    background: #F5EBE0;
    border-radius: 12px;
    padding: 24px;
}

.rh-family-card__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8B7A6A;
    margin-bottom: 8px;
}

.rh-family-card__name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 600;
    color: #2C2416;
    margin-bottom: 4px;
}

.rh-family-card__occupation {
    font-size: 14px;
    color: #6B5D4F;
}

.rh-siblings-box {
    background: #F5EBE0;
    border-radius: 12px;
    padding: 24px;
}

.rh-siblings-box__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8B7A6A;
    margin-bottom: 8px;
}

.rh-siblings-box__text {
    font-size: 15px;
    color: #2C2416;
    margin: 0;
    line-height: 1.6;
}

/* =============================================
   EDUCATION & CAREER GRID
   ============================================= */

.rh-education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.rh-education-item {
    padding: 0;
}

.rh-education-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #8B7A6A;
    margin-bottom: 6px;
    display: block;
}

.rh-education-value {
    font-size: 16px;
    font-weight: 500;
    color: #2C2416;
    display: block;
}

/* =============================================
   ABOUT ME & TEXT CONTENT
   ============================================= */

.rh-text-content {
    font-size: 16px;
    line-height: 1.8;
    color: #4A4238;
}

.rh-text-content p {
    margin: 0 0 16px 0;
}

.rh-text-content p:last-child {
    margin-bottom: 0;
}

/* =============================================
   HOBBIES & INTERESTS (TAGS)
   ============================================= */

.rh-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rh-tag {
    background: #F5EBE0;
    color: #2C2416;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #E8DDD0;
    transition: all 0.2s ease;
}

.rh-tag:hover {
    background: #E8DDD0;
    border-color: #C4965C;
}

/* =============================================
   PARTNER EXPECTATIONS
   ============================================= */

.rh-expectations {
    font-size: 16px;
    line-height: 1.8;
    color: #4A4238;
    margin-bottom: 20px;
}

.rh-expectations p {
    margin: 0 0 16px 0;
}

.rh-expectations p:last-child {
    margin-bottom: 0;
}

.rh-preferences {
    display: flex;
    gap: 32px;
    padding-top: 20px;
    border-top: 1px solid #E8DDD0;
    flex-wrap: wrap;
}

.rh-preference {
    flex: 1;
    min-width: 200px;
}

.rh-preference__label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #8B7A6A;
    margin-bottom: 6px;
}

.rh-preference__value {
    font-size: 15px;
    color: #2C2416;
}

/* =============================================
   CONTACT INFORMATION
   ============================================= */

.rh-contact {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 0;
}

.rh-contact__item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: linear-gradient(135deg, #FBF8F3 0%, #F5EDE0 100%);
    border-radius: 12px;
    border: 1px solid #E8DDD0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rh-contact__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 150, 92, 0.15);
}

.rh-contact__item--full {
    flex-direction: row;
}

.rh-contact__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #C4965C 0%, #A17843 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(196, 150, 92, 0.3);
}

.rh-contact__icon svg {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    stroke: white;
    fill: none;
    display: block;
}

.rh-contact__content {
    flex: 1;
    min-width: 0;
}

.rh-contact__label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #8B7A6A;
    margin-bottom: 4px;
    display: block;
}

.rh-contact__value {
    font-size: 16px;
    color: #2C2416;
    line-height: 1.6;
    word-break: break-word;
}

/* =============================================
   PHOTO GALLERY
   ============================================= */

.rh-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.rh-gallery__item {
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(44, 36, 22, 0.1);
}

.rh-gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rh-gallery__item:hover .rh-gallery__image {
    transform: scale(1.05);
}

/* =============================================
   FOOTER
   ============================================= */

.rh-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
}

.rh-footer__divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.rh-footer__divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #C4965C, transparent);
}

.rh-footer__divider-icon {
    flex-shrink: 0;
}

.rh-footer__text {
    font-size: 15px;
    color: #6B5D4F;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.rh-footer__subtext {
    font-size: 13px;
    color: #8B7A6A;
    font-style: italic;
    margin: 0;
}

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

@media (max-width: 768px) {
    .rh-profile {
        padding: 40px 16px;
    }

    .rh-header__name {
        font-size: 32px;
    }

    .rh-section {
        padding: 24px 20px;
    }

    .rh-section__title {
        font-size: 24px;
    }

    .rh-details-grid,
    .rh-education-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rh-family-grid {
        grid-template-columns: 1fr;
    }

    .rh-gallery {
        grid-template-columns: 1fr;
    }

    .rh-preferences {
        flex-direction: column;
        gap: 16px;
    }
}

@media print {
    .rh-profile {
        padding: 20px;
    }

    .rh-section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #E8DDD0;
    }
}
