/**
 * ModeoKids Account - Addresses
 * 
 * Styles for address management page
 */

/* ========================================
   ADDRESSES CONTAINER
   ======================================== */

.modeokids-account-addresses {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.addresses-header {
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.addresses-description {
    color: #6b7280;
    margin: 8px 0 0;
    font-size: 1rem;
}

/* ========================================
   ADDRESS CARDS GRID
   ======================================== */

.address-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

@media (max-width: 767px) {
    .address-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ADDRESS CARD
   ======================================== */

.address-card {
    background: #ffffff;
    border: 2px solid rgba(204, 22, 22, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.address-card:hover {
    border-color: #cc1616;
    box-shadow: 0 4px 12px rgba(204, 22, 22, 0.15);
}

/* Empty Address Card */
.address-card-empty {
    background: rgba(204, 22, 22, 0.02);
    border-style: dashed;
}

.address-card-empty:hover {
    background: #ffffff;
}

/* ========================================
   ADDRESS CARD HEADER
   ======================================== */

.address-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.address-card-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.address-icon {
    font-size: 28px;
    color: #cc1616;
}

.address-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

/* ========================================
   ADDRESS CARD CONTENT
   ======================================== */

.address-card-content {
    flex: 1;
    min-height: 120px;
    display: flex;
    align-items: center;
}

.address-formatted {
    font-style: normal;
    line-height: 1.6;
    color: #1f2937;
    font-size: 0.9375rem;
}

/* Empty State */
.address-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    width: 100%;
}

.address-empty .empty-icon {
    font-size: 48px;
    color: #cc1616;
    opacity: 0.5;
    margin-bottom: 12px;
}

.address-empty p {
    color: #6b7280;
    margin: 0;
    font-size: 0.9375rem;
}

/* ========================================
   ADDRESS CARD ACTIONS
   ======================================== */

.address-card-actions {
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.address-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    color: #cc1616;
    border: 2px solid #cc1616;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.address-edit-btn:hover {
    background: #cc1616;
    color: #ffffff;
}

.address-edit-btn.btn-primary {
    background: #cc1616;
    color: #ffffff;
}

.address-edit-btn.btn-primary:hover {
    background: #b31313;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 22, 22, 0.25);
}

.address-edit-btn .material-icons {
    font-size: 18px;
}

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

@media (max-width: 991px) {
    .address-card {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .address-card-content {
        min-height: 100px;
    }

    .address-empty .empty-icon {
        font-size: 40px;
    }
}