/* Enhanced Features CSS for Kurdish Tourism Locations */

/* Voice Search Styles */
.voice-search-btn {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.voice-search-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.voice-search-btn.listening {
    color: #e74c3c;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.1); }
    100% { transform: translateY(-50%) scale(1); }
}

/* Weather Section Styles */
.weather-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.weather-info {
    text-align: center;
}

.weather-loading {
    color: #999;
    font-size: 14px;
}

.weather-current {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.weather-temp {
    font-size: 32px;
    font-weight: 600;
    color: #333;
}

.weather-condition {
    font-size: 16px;
    color: #666;
    text-transform: capitalize;
}

.weather-details {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #999;
}

.weather-details div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.weather-error {
    color: #e74c3c;
    font-size: 14px;
}

/* Features Section Styles */
.features-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.feature-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.feature-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.feature-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.feature-btn i {
    font-size: 20px;
}

.feature-btn span {
    font-size: 12px;
    font-weight: 500;
}

/* AR Camera Styles */
.ar-camera-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.ar-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.ar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.ar-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Itinerary Planner Styles */
.itinerary-planner {
    max-width: 800px;
    margin: 0 auto;
}

.itinerary-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.itinerary-days {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.itinerary-day {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.itinerary-day h4 {
    margin-bottom: 15px;
    color: #333;
}

.day-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.itinerary-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.itinerary-item select,
.itinerary-item input {
    padding: 8px 12px;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
}

.itinerary-item .item-type {
    min-width: 120px;
}

.itinerary-item .item-title {
    flex: 1;
}

.itinerary-item .item-time {
    min-width: 100px;
}

.itinerary-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Business Directory Styles */
.business-directory {
    max-width: 900px;
    margin: 0 auto;
}

.business-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.business-filters select,
.business-filters input {
    padding: 10px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
}

.business-filters select {
    min-width: 150px;
}

.business-filters input {
    flex: 1;
}

.business-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
}

.business-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.business-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.business-info {
    flex: 1;
}

.business-info h4 {
    margin-bottom: 8px;
    color: #333;
}

.business-info p {
    margin-bottom: 12px;
    color: #666;
    line-height: 1.4;
}

.business-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.business-details span {
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.business-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #f39c12;
}

.business-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Event Calendar Styles */
.event-calendar {
    max-width: 900px;
    margin: 0 auto;
}

.calendar-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.calendar-controls span {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    min-width: 150px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 30px;
    background: #e1e8ed;
    border-radius: 10px;
    overflow: hidden;
}

.calendar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 5px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.calendar-empty {
    background: white;
    height: 60px;
}

.calendar-day {
    background: white;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.calendar-day:hover {
    background: #f8f9fa;
    color: #667eea;
}

.calendar-day.has-event {
    background: #e8f4fd;
    color: #667eea;
    font-weight: 600;
}

.events-list {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.events-list h4 {
    margin-bottom: 20px;
    color: #333;
}

.events-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.event-item {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.event-item:hover {
    background: #e8f4fd;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    padding: 10px;
}

.event-day {
    font-size: 20px;
    font-weight: 600;
}

.event-month {
    font-size: 12px;
    text-transform: uppercase;
}

.event-info {
    flex: 1;
}

.event-info h5 {
    margin-bottom: 8px;
    color: #333;
}

.event-info p {
    margin-bottom: 10px;
    color: #666;
    line-height: 1.4;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.event-details span {
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-actions {
    display: flex;
    align-items: center;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-success {
    border-left: 4px solid #27ae60;
    color: #27ae60;
}

.notification-error {
    border-left: 4px solid #e74c3c;
    color: #e74c3c;
}

.notification-warning {
    border-left: 4px solid #f39c12;
    color: #f39c12;
}

.notification-info {
    border-left: 4px solid #3498db;
    color: #3498db;
}

/* Loading and Error States */
.loading {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

.loading i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.no-results,
.no-events {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-style: italic;
}

.error {
    text-align: center;
    color: #e74c3c;
    padding: 20px;
    background: #fee;
    border-radius: 8px;
    border: 1px solid #fcc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .business-filters {
        flex-direction: column;
    }
    
    .business-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .business-actions {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .calendar-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .event-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .event-actions {
        justify-content: flex-start;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
    
    .ar-controls {
        bottom: 10px;
        flex-direction: column;
        gap: 5px;
    }
    
    .ar-controls button {
        font-size: 12px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .feature-buttons {
        grid-template-columns: 1fr;
    }
    
    .itinerary-item {
        flex-wrap: wrap;
    }
    
    .itinerary-item select,
    .itinerary-item input {
        min-width: 100%;
    }
    
    .calendar-grid {
        gap: 1px;
    }
    
    .calendar-header,
    .calendar-day {
        height: 40px;
        font-size: 12px;
    }
}

/* Dark Mode Support */
body.dark-mode .weather-section,
body.dark-mode .features-section,
body.dark-mode .business-item,
body.dark-mode .event-item {
    background: #2d3748;
    color: white;
}

body.dark-mode .weather-temp,
body.dark-mode .business-info h4,
body.dark-mode .event-info h5 {
    color: white;
}

body.dark-mode .weather-condition,
body.dark-mode .business-info p,
body.dark-mode .event-info p {
    color: #cbd5e0;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: #4a5568;
    border-color: #4a5568;
    color: white;
}

body.dark-mode .itinerary-day,
body.dark-mode .business-filters,
body.dark-mode .calendar-controls {
    background: #4a5568;
}

body.dark-mode .calendar-day {
    background: #2d3748;
    color: white;
}

body.dark-mode .calendar-day:hover {
    background: #4a5568;
}

body.dark-mode .notification {
    background: #2d3748;
    color: white;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e1e8ed;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #cbd5e0;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.3s ease;
}

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