/* ========================================
   HELI3000 - COMPONENTS CSS
   ======================================== */

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-text-white);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-white);
    border: 2px solid var(--color-text-white);
}

.btn-secondary:hover {
    background: var(--color-text-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-text-white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ========================================
   FORMS
   ======================================== */
.contact-form {
    background: var(--color-bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.contact-form .btn{
    width: 100%;
}

.form-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    font-size: var(--font-size-base);
    text-align: center;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

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

.form-note {
    margin-top: 1rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid #eee;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-family: inherit;
    transition: border-color var(--transition-normal);
    background: var(--color-bg-primary);
    min-height: var(--touch-target-min);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-bg-secondary);
}

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

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    padding: 10px;
    position: relative;
    width: 90vw;
    height: 90vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    display: block;
}

.lightbox-caption {
    color: var(--color-text-white);
    font-size: var(--font-size-lg);
    margin-top: var(--spacing-lg);
    text-shadow: var(--shadow-md);
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--color-text-white);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    border: none;
    outline: none;
    line-height: 1;
    padding: 0;
    text-align: center;
    vertical-align: middle;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-text-white);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: var(--font-size-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    min-width: 44px;
    min-height: 44px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

.lightbox-preview {
    display: flex;
    justify-content: flex-start;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    overflow-x: auto;
    align-items: center;
    padding: 10px;
    max-width: 100%;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.lightbox-preview::-webkit-scrollbar {
    height: 8px;
    background: transparent;
}

.lightbox-preview::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.lightbox-preview::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-preview::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
}

.lightbox-preview-thumbnail {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    opacity: 0.6;
}

.lightbox-preview-thumbnail:hover, .lightbox-preview-thumbnail.active {
    opacity: 1;
    border-color: var(--color-primary);
    transform: scale(1.1);
}

.lightbox-preview-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   NOTIFICATIONS
   ======================================== */
.notification {
    position: fixed;
    top: 100px;
    right: 7px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    max-width: 400px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    color: white;
    font-weight: 500;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.notification-message {
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

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

.notification-success {
    background: #4CAF50;
}

.notification-error {
    background: #f44336;
}

.notification-info {
    background: #2196F3;
}

/* ========================================
   LANGUAGE SELECTOR
   ======================================== */
.language-selector {
    position: absolute;
    left: 68px;
    margin-top: 2px;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--color-text-white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-xs);
    backdrop-filter: blur(10px);
    min-width: 48px;
    height: 40px;
    justify-content: center;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.language-toggle i {
    font-size: var(--font-size-xs);
    transition: transform var(--transition-normal);
}

.language-toggle.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.current-lang {
    font-weight: var(--font-weight-bold);
    min-width: 18px;
    font-size: var(--font-size-xs);
    text-align: center;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: -15px;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    padding: var(--spacing-sm);
    margin-top: var(--spacing-xs);
    min-width: 130px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-sm);
    color: var(--color-text-white);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-lg);
}

.language-option:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--color-text-white);
    transform: translateX(2px);
}

.language-option.active .language-option.hover {
    background: var(--color-primary);
    color: var(--color-text-white);
}

.lang-code {
    font-weight: var(--font-weight-bold);
    min-width: 22px;
    text-align: center;
}

.lang-name {
    flex: 1;
}

/* Scrolled navbar state */
.navbar[style*="background: rgba(255, 255, 255, 0.98)"] .language-toggle {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    color: var(--color-primary);
}

.navbar[style*="background: rgba(255, 255, 255, 0.98)"] .language-toggle:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}