/* Pet Showcase Plugin Styles */

.pet-showcase-gallery,
.pet-showcase-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Hero Section */
.pet-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.pet-hero h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.pet-hero p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Filters */
.pet-filters {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-container {
    flex: 1;
    min-width: 300px;
}

.search-container input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
}

.filter-container {
    display: flex;
    gap: 1rem;
}

.filter-container select {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    background: white;
}

/* Stats */
.pet-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 12px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-total {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.stat-dogs {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-cats {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
}

.stat-icon {
    font-size: 2rem;
}

/* Pet Grid */
.pet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.pet-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.pet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.pet-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.pet-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pet-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.pet-like-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pet-like-btn:hover {
    background: white;
    transform: scale(1.1);
}

.pet-like-btn.liked .heart-icon {
    color: #ef4444;
}

.pet-content {
    padding: 1.5rem;
}

.pet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.pet-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.pet-details {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pet-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.pet-type-dog {
    background: #fef3c7;
    color: #92400e;
}

.pet-type-cat {
    background: #ede9fe;
    color: #6b21a8;
}

.pet-description {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.pet-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.pet-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.3;
    transition: all 0.2s ease;
}

.star.filled,
.star:hover {
    opacity: 1;
    transform: scale(1.1);
}

.rating-count {
    font-size: 0.75rem;
    color: #6b7280;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #eff6ff;
    color: #2563eb;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

.pet-footer {
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.pet-author {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
}

/* Form Styles */
.form-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, #f97316, #ec4899);
    padding: 2rem;
    text-align: center;
    color: white;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
}

.form-header p {
    opacity: 0.9;
    margin: 0;
}

#pet-submission-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-group textarea.over-limit {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Character Counter */
.character-counter {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
    text-align: right;
}

.character-counter.warning {
    color: #f59e0b;
}

.character-counter.over-limit {
    color: #ef4444;
    font-weight: 600;
}

/* Image Upload */
.image-upload-container {
    position: relative;
}

.upload-placeholder {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
}

.upload-placeholder:hover {
    border-color: #f97316;
    background: #fef7ed;
}

.upload-placeholder.dragover {
    border-color: #f97316;
    background: #fef7ed;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-link {
    color: #f97316;
    cursor: pointer;
    font-weight: 600;
}

.upload-link:hover {
    color: #ea580c;
}

.upload-note {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

#pet_image {
    display: none;
}

.image-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.image-preview img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

.remove-image:hover {
    background: #dc2626;
}

/* Submit Button */
.form-actions {
    text-align: right;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.submit-btn {
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* No Pets */
.no-pets {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
}

.no-pets-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-pets h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.no-pets p {
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pet-hero h1 {
        font-size: 2rem;
    }
    
    .pet-filters {
        flex-direction: column;
    }
    
    .filter-container {
        flex-direction: column;
    }
    
    .pet-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .pet-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .share-btn {
        justify-content: center;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pet-card {
    animation: fadeIn 0.5s ease-out;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Focus styles */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}
/* Pet Modal */
.pet-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.pet-modal {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.pet-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    transition: all 0.2s ease;
    z-index: 10;
}

.pet-modal-close:hover {
    background: white;
    color: #333;
    transform: scale(1.1);
}

.pet-modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.pet-modal-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    border-radius: 20px 20px 0 0;
}

.pet-modal-content {
    padding: 2rem;
}

.pet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.pet-modal-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.pet-modal-subtitle {
    color: #6b7280;
    font-size: 1.125rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pet-modal-type-badge {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

.pet-modal-description {
    color: #4b5563;
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    border-left: 4px solid #f97316;
}

.pet-modal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pet-modal-stat {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.pet-modal-stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.pet-modal-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0;
}

.pet-modal-stat-label {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
}

.pet-modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.pet-modal-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pet-modal-stars {
    display: flex;
    gap: 0.25rem;
}

.pet-modal-stars .star {
    font-size: 1.5rem;
}

.pet-modal-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pet-modal-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.pet-modal-footer {
    padding: 1.5rem 2rem;
    background: #f9fafb;
    border-radius: 0 0 20px 20px;
    border-top: 1px solid #f3f4f6;
}

.pet-modal-owner {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
    text-align: center;
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .pet-modal {
        margin: 10px;
        max-height: 95vh;
    }
    
    .pet-modal-image,
    .pet-modal-placeholder {
        height: 250px;
    }
    
    .pet-modal-content {
        padding: 1.5rem;
    }
    
    .pet-modal-title {
        font-size: 2rem;
    }
    
    .pet-modal-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .pet-modal-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pet-modal-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .pet-modal-share {
        justify-content: center;
    }
    
    .pet-modal-footer {
        padding: 1rem 1.5rem;
    }
}