/* PatuPet Connect - PDP Pet Selector Styles */

.patupet-connect-selector {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    animation: patupetFadeIn 0.3s ease-out;
}

@keyframes patupetFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.patupet-connect-selector__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Toggle Switch Styling */
.patupet-connect-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 10px;
}

.patupet-connect-toggle input {
    display: none;
}

.patupet-connect-toggle__slider {
    position: relative;
    width: 40px;
    height: 20px;
    background-color: #cbd5e1;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.patupet-connect-toggle__slider::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.patupet-connect-toggle input:checked + .patupet-connect-toggle__slider {
    background-color: #ff6b6b; /* PatuPet Primary Color */
}

.patupet-connect-toggle input:checked + .patupet-connect-toggle__slider::before {
    transform: translateX(20px);
}

.patupet-connect-toggle__label {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

/* Selected Badge */
.patupet-connect-selected-badge {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.1);
}

.patupet-connect-clear-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 18px;
    margin-left: 8px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.patupet-connect-clear-btn:hover {
    color: #fa5252;
}

/* Modal Styling */
.patupet-connect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.patupet-connect-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.patupet-connect-modal__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.patupet-connect-modal__container {
    position: relative;
    background: white;
    width: 90%;
    max-width: 450px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.patupet-connect-modal.is-open .patupet-connect-modal__container {
    transform: scale(1);
}

.patupet-connect-modal__header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.patupet-connect-modal__header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.patupet-connect-modal__close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    font-size: 20px;
    transition: all 0.2s;
}

.patupet-connect-modal__close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.patupet-connect-modal__body {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
}

/* Pet Grid */
.patupet-connect-pet-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.patupet-connect-pet-card {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.patupet-connect-pet-card:hover {
    background: #ffffff;
    border-color: #ff6b6b;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.1);
    transform: translateY(-2px);
}

.patupet-connect-pet-card__icon {
    font-size: 28px;
    margin-right: 16px;
    background: white;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.patupet-connect-pet-card__info {
    display: flex;
    flex-direction: column;
}

.patupet-connect-pet-card__name {
    font-weight: 700;
    color: #1e293b;
    font-size: 16px;
}

.patupet-connect-pet-card__breed {
    font-size: 13px;
    color: #64748b;
}
