/**
 * My Zillow Slider Extension - Global Styles
 * Additional styles for the extension
 */

/* Admin Page Styles */
.my-zillow-admin-notice {
    border-left: 4px solid #0073aa;
    padding: 12px;
    margin: 15px 0;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.my-zillow-admin-notice.success {
    border-left-color: #46b450;
}

.my-zillow-admin-notice.error {
    border-left-color: #dc3232;
}

/* Review Card Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.my-review-card {
    animation: slideInUp 0.6s ease-out;
}

/* Loading Spinner */
.my-zillow-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Styles */
.my-zillow-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.my-zillow-button:hover {
    background: #005a87;
}

.my-zillow-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Rating Stars Alternative Style */
.rating-stars-alternate {
    display: inline-flex;
    gap: 2px;
}

.rating-stars-alternate .star {
    font-size: 16px;
    transition: transform 0.1s ease;
}

.rating-stars-alternate .star:hover {
    transform: scale(1.2);
}

/* Responsive Grid Helper */
.my-zillow-grid-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Print Styles */
@media print {
    .review-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .my-zillow-button,
    .rating-stars {
        display: none;
    }
}
