/**
 * Component Styles for Hotel Start Kežmarok WordPress Theme
 * 
 * @package HotelStartKezmarok
 */

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--card);
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-strong);
    animation: modalFadeIn 0.3s ease-out;
}

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

.modal-header {
    padding: 1.5rem 1.5rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.modal-header h2 {
    margin: 0;
    color: var(--foreground);
    display: flex;
    align-items: center;
}

.modal-body {
    padding: 0 1.5rem 1.5rem;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted-foreground);
    background: none;
    border: none;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: var(--transition-smooth);
}

.close:hover {
    color: var(--foreground);
    background-color: var(--muted);
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--foreground);
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    background-color: var(--background);
    color: var(--foreground);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    width: auto;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    font-size: 0.875rem;
    line-height: 1.4;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    background-color: var(--muted);
    border-color: var(--muted-foreground);
}

/* Chatbot Styles */
.chatbot-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
    animation: pulse-glow 2s infinite;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-strong);
}

.chatbot-icon {
    font-size: 1.5rem;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-strong);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    animation: modalFadeIn 0.3s ease-out;
}

.chatbot-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    border-radius: var(--radius) var(--radius) 0 0;
}

.chatbot-header h4 {
    margin: 0;
    font-size: 1rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--primary-foreground);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: var(--transition-smooth);
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    max-width: 80%;
    word-wrap: break-word;
}

.user-message {
    align-self: flex-end;
}

.user-message .message-content {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    padding: 0.75rem;
    border-radius: var(--radius) var(--radius) 0.25rem var(--radius);
}

.assistant-message .message-content {
    background: var(--muted);
    color: var(--foreground);
    padding: 0.75rem;
    border-radius: var(--radius) var(--radius) var(--radius) 0.25rem;
}

.chatbot-input {
    padding: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
}

.chatbot-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--background);
    color: var(--foreground);
}

.chatbot-input input:focus {
    outline: none;
    border-color: var(--primary);
}

.send-btn {
    padding: 0.75rem 1rem;
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.send-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: var(--shadow-medium);
    z-index: 998;
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cookie-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--foreground);
}

.cookie-content p {
    margin: 0 0 1rem 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Notification System */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1001;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-strong);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    animation: notificationSlide 0.3s ease-out forwards;
}

.notification.show {
    transform: translateX(0);
}

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

.notification-success {
    background: var(--success);
    color: var(--success-foreground);
}

.notification-error {
    background: var(--destructive);
    color: var(--destructive-foreground);
}

.notification-info {
    background: var(--primary);
    color: var(--primary-foreground);
}

.notification-close {
    background: none;
    border: none;
    color: currentColor;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: var(--transition-smooth);
    opacity: 0.7;
}

.notification-close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Domain Information Styles */
.domain-info {
    background: var(--muted);
    padding: 1rem;
    border-radius: var(--radius);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.domain-info p {
    margin: 0.25rem 0;
    color: var(--foreground);
}

/* Responsive Design for Components */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .chatbot-widget {
        bottom: 1rem;
        right: 1rem;
    }

    .chatbot-window {
        width: 300px;
        height: 400px;
        right: -10px;
    }

    .notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    .cookie-banner {
        padding: 1rem;
    }

    .cookie-actions {
        flex-direction: column;
        align-items: center;
    }

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

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

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--muted-foreground);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Focus Management */
.modal-open {
    overflow: hidden;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .modal {
        background-color: rgba(0, 0, 0, 0.9);
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        border-width: 2px;
    }
}