/* Account & Auth Pages Styles */

/* Auth Forms */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background: var(--warm-white);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-medium);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.auth-header p {
    color: var(--warm-gray);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-form .form-group {
    margin-bottom: 0;
}

.auth-form .btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--warm-gray);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--light-gray);
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    background: var(--warm-white);
    color: var(--soft-black);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    border-color: var(--soft-black);
    background: var(--warm-cream);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
    color: var(--warm-gray);
}

.auth-footer a {
    color: var(--accent-coral);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Network Badge */
.network-badge {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 20px;
    background: rgba(129, 178, 154, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 32px;
    font-size: 0.85rem;
    color: var(--accent-sage);
}

.network-badge strong {
    color: var(--soft-black);
}

/* Account Dashboard */
.account-section {
    padding: 140px 0 80px;
    min-height: 100vh;
}

.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
}

.account-sidebar {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.account-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 24px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-terracotta));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-family: 'Fraunces', serif;
    margin-bottom: 16px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.account-user h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.account-user p {
    color: var(--warm-gray);
    font-size: 0.9rem;
}

.account-nav {
    list-style: none;
}

.account-nav li {
    margin-bottom: 8px;
}

.account-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    color: var(--soft-black);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.account-nav a:hover {
    background: var(--warm-cream);
}

.account-nav a.active {
    background: rgba(224, 122, 95, 0.1);
    color: var(--accent-coral);
}

.account-nav a svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.account-main {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.account-main h2 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.account-main > p {
    color: var(--warm-gray);
    margin-bottom: 32px;
}

/* Favorites Grid */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.favorite-card {
    background: var(--warm-cream);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.favorite-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.favorite-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.favorite-card-content {
    padding: 20px;
}

.favorite-card h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.favorite-card p {
    color: var(--warm-gray);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.favorite-actions {
    display: flex;
    gap: 8px;
}

.favorite-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-actions .view-btn {
    background: var(--soft-black);
    color: white;
}

.favorite-actions .view-btn:hover {
    background: var(--accent-coral);
}

.favorite-actions .remove-btn {
    background: transparent;
    border: 1px solid var(--light-gray);
    color: var(--warm-gray);
}

.favorite-actions .remove-btn:hover {
    border-color: var(--accent-coral);
    color: var(--accent-coral);
}

/* My Pets Section */
.my-pets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.add-pet-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-sage);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-pet-btn:hover {
    background: #6B9A84;
    transform: translateY(-2px);
}

.my-pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.my-pet-card {
    background: var(--warm-cream);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    gap: 20px;
}

.my-pet-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.my-pet-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.my-pet-info p {
    color: var(--warm-gray);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.my-pet-info .edit-btn {
    background: none;
    border: none;
    color: var(--accent-coral);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--warm-gray);
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--soft-black);
    margin-bottom: 8px;
}

.empty-state p {
    margin-bottom: 24px;
}

/* Settings Form */
.settings-form {
    max-width: 600px;
}

.settings-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--light-gray);
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.settings-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--soft-black);
}

.toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--light-gray);
}

.toggle-group:last-child {
    border-bottom: none;
}

.toggle-label {
    display: flex;
    flex-direction: column;
}

.toggle-label span {
    font-weight: 500;
}

.toggle-label small {
    color: var(--warm-gray);
    font-size: 0.85rem;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--light-gray);
    border-radius: 28px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-coral);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

/* Pet Profile Page */
.pet-profile-section {
    padding: 120px 0 80px;
}

.pet-profile-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
}

.pet-gallery {
    position: sticky;
    top: 120px;
}

.pet-main-image {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-xl);
    object-fit: cover;
    margin-bottom: 16px;
    box-shadow: var(--shadow-medium);
}

.pet-thumbnails {
    display: flex;
    gap: 12px;
}

.pet-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.pet-thumbnail:hover,
.pet-thumbnail.active {
    opacity: 1;
}

.pet-profile-info {
    background: var(--warm-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.pet-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.pet-profile-header h1 {
    font-size: 2.5rem;
}

.pet-profile-header .pet-gender {
    font-size: 1.5rem;
}

.pet-status {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pet-status.available {
    background: rgba(129, 178, 154, 0.15);
    color: var(--accent-sage);
}

.pet-status.pending {
    background: rgba(242, 204, 143, 0.3);
    color: #B5922C;
}

.pet-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.pet-quick-info .info-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--warm-cream);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.pet-description {
    margin-bottom: 32px;
}

.pet-description h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.pet-description p {
    color: var(--warm-gray);
    line-height: 1.8;
}

.pet-traits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.trait {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trait-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(224, 122, 95, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trait-text span {
    display: block;
    font-size: 0.8rem;
    color: var(--warm-gray);
}

.trait-text strong {
    font-weight: 600;
}

.pet-shelter-card {
    background: var(--warm-cream);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.shelter-avatar-lg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-sage);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.shelter-details h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.shelter-details p {
    color: var(--warm-gray);
    font-size: 0.9rem;
}

.pet-actions {
    display: flex;
    gap: 12px;
}

.pet-actions .btn-primary,
.pet-actions .btn-secondary {
    flex: 1;
    justify-content: center;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 24, 20, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--warm-white);
    /*border-radius: var(--radius-sm);*/
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 1.5rem;
}

.modal-close {
    padding-top: 10px;
    padding-right: 10px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--warm-gray);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-coral);
}

/* Location Controls */
.location-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.location-input-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    gap: 8px;
}

.location-input-group input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.radius-select {
    display: flex;
    align-items: center;
    gap: 12px;
}

.radius-select label {
    font-weight: 500;
    white-space: nowrap;
}

.radius-select select {
    padding: 14px 16px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    background: var(--warm-white);
    font-size: 1rem;
}

/* Responsive Account */
@media (max-width: 968px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }

    .pet-profile-layout {
        grid-template-columns: 1fr;
    }

    .pet-gallery {
        position: static;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
    }

    .account-main {
        padding: 24px;
    }

    .pet-actions {
        flex-direction: column;
    }
}
