/* ========================================
   RESPONSIVE DESIGN (Bloodlines Premium)
   ======================================== */

/* Small tablets/Large phones */
@media (max-width: 992px) {
    .profile-content-grid {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        order: 2;
    }
}

/* Standard Mobile */
@media (max-width: 768px) {

    .nav-brand-text {
        font-size: 1.1rem;
        display: none;
    }

    .nav-actions {
        gap: 12px;
    }

    /* Family Tree Snapshot */
    .person-card {
        width: 100px;
        height: 140px;
        padding: 8px;
    }

    .person-card .card-background {
        height: 100%;
    }

    .person-card.center {
        width: 130px;
        height: 180px;
    }

    .tree-container {
        gap: 20px;
        padding: 40px 10px;
    }

    .add-relative-btn {
        width: 60px;
        height: 60px;
    }

    /* Profile Page Header */
    .profile-main-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px 20px;
        margin-top: 0px;
        /* Removed negative margin to avoid cutting off photo top */
    }

    .profile-avatar-large {
        width: 120px;
        height: 120px;
    }

    .profile-names h1 {
        font-size: 1.75rem;
    }

    .profile-actions-bar {
        justify-content: center;
        width: 100%;
    }

    .btn-action {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    /* Modals */
    .modal-content {
        width: 95vw;
        padding: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

/* Very Small Devices */
@media (max-width: 480px) {
    .nav-brand-text {
        display: none;
        /* Hide text on tiny screens to save space for icons */
    }

    .profile-names h1 {
        font-size: 1.5rem;
    }

    .profile-avatar-large {
        width: 100px;
        height: 100px;
    }
}