
/* Disney Wait Times Plugin Styles */

/* Base styles */
.disney-wait-times {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.disney-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.disney-header {
    text-align: center;
    margin-bottom: 40px;
}

.disney-title {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.disney-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
}

/* Search Filters */
.disney-filters {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid rgba(255,255,255,0.2);
}

.disney-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.disney-input, .disney-select {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px;
    border-radius: 8px;
    font-size: 14px;
}

/* Fix dropdown text positioning - move up 2px */
.disney-select {
    line-height: 1.2;
    padding-top: 6px;
    padding-bottom: 10px;
}

/* Search input specific styling with no padding for placeholder */
.disney-input[type="search"], 
.disney-input.search-input {
    padding-left: 0;
    padding-right: 0;
    text-indent: 12px;
}

.disney-input::placeholder {
    color: rgba(255,255,255,0.7);
    padding: 0;
    text-indent: 0;
    padding-left: 12px;
}

.disney-select option {
    background: #333;
    color: white;
}

.disney-filter-info {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* Attraction Grid */
.disney-attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Attraction Cards */
.disney-card {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.disney-card:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(255,255,255,0.2);
}

.disney-card-header {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 10;
}

.disney-distance-badge {
    background: rgba(59,130,246,0.8);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

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

/* Updated favorite button styling - smaller size with star icon */
.disney-favorite-btn, .disney-navigate-btn {
    width: 28px;  /* Reduced from 40px (30% smaller) */
    height: 28px; /* Reduced from 40px (30% smaller) */
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px; /* Smaller icon size */
}

.disney-favorite-btn {
    background: rgba(0,0,0,0.4);
    color: rgba(255,255,255,0.7);
    position: relative;
}

.disney-favorite-btn:hover {
    background: rgba(0,0,0,0.6);
    transform: scale(1.1);
}

/* Active favorite state with golden star */
.disney-favorite-btn.active {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #333;
    box-shadow: 0 4px 12px rgba(255,215,0,0.4);
}

.disney-favorite-btn.active:hover {
    background: linear-gradient(135deg, #ffed4a, #ffd700);
    transform: scale(1.1);
}

/* Star icon styling */
.disney-favorite-btn::before {
    content: "☆"; /* Empty star */
    font-size: 16px;
    line-height: 1;
}

.disney-favorite-btn.active::before {
    content: "★"; /* Filled star */
    font-size: 16px;
    line-height: 1;
    color: #333;
}

.disney-navigate-btn {
    background: rgba(34,197,94,0.8);
    color: white;
}

.disney-navigate-btn:hover {
    background: rgba(34,197,94,1);
}

.disney-card-image {
    height: 192px;
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
    position: relative;
    overflow: hidden;
}

.disney-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.disney-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
}

.disney-card-content {
    padding: 16px;
}

.disney-card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.disney-card:hover .disney-card-title {
    color: #fbbf24;
}

.disney-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.disney-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.disney-badge.park-disneyland {
    background: #2563eb;
}

.disney-badge.park-california-adventure {
    background: #7c3aed;
}

.disney-badge.type-ride {
    background: #059669;
}

.disney-badge.type-show {
    background: #db2777;
}

.disney-badge.type-restaurant {
    background: #0891b2;
}

.disney-badge.status-operational {
    background: #10b981;
    animation: pulse 2s infinite;
}

.disney-badge.status-down {
    background: #f59e0b;
}

.disney-badge.status-refurbishment {
    background: #ef4444;
}

/* Park closed status badge */
.disney-badge.status-closed {
    background: #ef4444;
    color: white;
}

.disney-wait-time {
    text-align: center;
}

.disney-wait-time-value {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 0 0 20px currentColor;
}

.disney-wait-time-low {
    color: #10b981;
}

.disney-wait-time-medium {
    color: #f59e0b;
}

.disney-wait-time-high {
    color: #ef4444;
}

.disney-restaurant-status {
    font-size: 1.5rem;
    font-weight: bold;
    color: #60a5fa;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Park closed status */
.disney-park-closed {
    font-size: 1.5rem;
    font-weight: bold;
    color: #9ca3af;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Favorites Empty State */
.disney-favorites-empty {
    text-align: center;
    color: rgba(255,255,255,0.7);
    padding: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    margin: 20px 0;
}

.disney-favorites-empty h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.9);
}

/* Modal */
.disney-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.disney-modal-content {
    background: linear-gradient(135deg, rgba(30,58,138,0.95), rgba(91,33,182,0.95));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    color: white;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.disney-modal.active .disney-modal-content {
    transform: scale(1);
}

.disney-modal-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.disney-modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.disney-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.disney-modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.disney-modal-body {
    padding: 24px;
}

.disney-modal-image {
    height: 256px;
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}

.disney-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.disney-modal-description {
    color: rgba(255,255,255,0.8);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.disney-modal-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.disney-modal-section h4 {
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 12px;
}

/* Loading states */
.disney-loading {
    text-align: center;
    padding: 40px;
    color: white;
}

.disney-spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

/* Responsive design */
@media (max-width: 768px) {
    .disney-title {
        font-size: 2rem;
    }
    
    .disney-filters-grid {
        grid-template-columns: 1fr;
    }
    
    .disney-attractions-grid {
        grid-template-columns: 1fr;
    }
    
    .disney-modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .disney-modal-info {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Utility classes */
.disney-hidden {
    display: none;
}

.disney-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;
}
