/**
 * VHS Pro - Additional Main Styles
 *
 * This file contains additional styles beyond the base style.css
 * for more specific components and interactions.
 */

/* ========================================
   Form Styles
   ======================================== */
.vhs-contact-form input[type="text"],
.vhs-contact-form input[type="email"],
.vhs-contact-form input[type="tel"],
.vhs-contact-form select,
.vhs-contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--vhs-gray-300);
    border-radius: var(--vhs-radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--vhs-transition-fast);
}

.vhs-contact-form input[type="text"]:focus,
.vhs-contact-form input[type="email"]:focus,
.vhs-contact-form input[type="tel"]:focus,
.vhs-contact-form select:focus,
.vhs-contact-form textarea:focus {
    border-color: var(--vhs-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.vhs-contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--vhs-gray-900);
}

.vhs-contact-form .required {
    color: var(--vhs-danger);
    font-weight: 700;
}

.vhs-form-group {
    margin-bottom: 1.5rem;
}

.vhs-contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* ========================================
   Smooth Scroll
   ======================================== */
html {
    scroll-behavior: smooth;
}

/* ========================================
   Image Lazy Loading Animation
   ======================================== */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ========================================
   Scroll Reveal Animation
   ======================================== */
.vhs-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.vhs-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Hover Effects
   ======================================== */
.vhs-hover-lift {
    transition: var(--vhs-transition);
}

.vhs-hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--vhs-shadow-xl);
}

/* ========================================
   Badge Component
   ======================================== */
.vhs-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--vhs-radius-full);
    background-color: var(--vhs-primary);
    color: var(--vhs-white);
}

.vhs-badge--success {
    background-color: var(--vhs-success);
}

.vhs-badge--warning {
    background-color: var(--vhs-warning);
}

.vhs-badge--danger {
    background-color: var(--vhs-danger);
}

/* ========================================
   Alert/Notice Component
   ======================================== */
.vhs-alert {
    padding: 1rem 1.5rem;
    border-radius: var(--vhs-radius-lg);
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.vhs-alert--info {
    background-color: rgba(37, 99, 235, 0.1);
    border-color: var(--vhs-primary);
    color: var(--vhs-primary-dark);
}

.vhs-alert--success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--vhs-success);
    color: #065f46;
}

.vhs-alert--warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: var(--vhs-warning);
    color: #92400e;
}

.vhs-alert--danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: var(--vhs-danger);
    color: #991b1b;
}

/* ========================================
   Progress Bar
   ======================================== */
.vhs-progress {
    width: 100%;
    height: 8px;
    background-color: var(--vhs-gray-200);
    border-radius: var(--vhs-radius-full);
    overflow: hidden;
}

.vhs-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--vhs-primary) 0%, var(--vhs-secondary) 100%);
    transition: width 0.3s ease;
}

/* ========================================
   Tooltip
   ======================================== */
.vhs-tooltip {
    position: relative;
    cursor: help;
}

.vhs-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 0.5rem 0.75rem;
    background-color: var(--vhs-gray-900);
    color: var(--vhs-white);
    font-size: 0.875rem;
    border-radius: var(--vhs-radius-md);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

.vhs-tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* ========================================
   Modal
   ======================================== */
.vhs-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.vhs-modal__content {
    background-color: var(--vhs-white);
    border-radius: var(--vhs-radius-xl);
    padding: var(--vhs-spacing-2xl);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.vhs-modal.active .vhs-modal__content {
    transform: scale(1);
}

.vhs-modal__close {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--vhs-gray-600);
    transition: var(--vhs-transition-fast);
}

.vhs-modal__close:hover {
    color: var(--vhs-gray-900);
}

/* ========================================
   Breadcrumbs
   ======================================== */
.vhs-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--vhs-gray-600);
    margin-bottom: 1.5rem;
}

.vhs-breadcrumbs a {
    color: var(--vhs-primary);
    transition: var(--vhs-transition-fast);
}

.vhs-breadcrumbs a:hover {
    color: var(--vhs-primary-dark);
}

.vhs-breadcrumbs__separator {
    color: var(--vhs-gray-400);
}

/* ========================================
   Tabs
   ======================================== */
.vhs-tabs {
    border-bottom: 2px solid var(--vhs-gray-200);
    margin-bottom: 2rem;
}

.vhs-tabs__list {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.vhs-tabs__button {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--vhs-gray-600);
    font-weight: 600;
    cursor: pointer;
    transition: var(--vhs-transition-fast);
    margin-bottom: -2px;
}

.vhs-tabs__button:hover {
    color: var(--vhs-primary);
}

.vhs-tabs__button.active {
    color: var(--vhs-primary);
    border-bottom-color: var(--vhs-primary);
}

.vhs-tabs__panel {
    display: none;
}

.vhs-tabs__panel.active {
    display: block;
}

/* ========================================
   Stats/Counter
   ======================================== */
.vhs-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.vhs-stat__number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--vhs-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.vhs-stat__label {
    font-size: 1rem;
    color: var(--vhs-gray-600);
}

/* ========================================
   Timeline
   ======================================== */
.vhs-timeline {
    position: relative;
    padding-left: 2rem;
}

.vhs-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--vhs-gray-300);
}

.vhs-timeline__item {
    position: relative;
    padding-bottom: 2rem;
}

.vhs-timeline__item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--vhs-primary);
    border: 2px solid var(--vhs-white);
    box-shadow: 0 0 0 2px var(--vhs-primary);
}

.vhs-timeline__date {
    font-weight: 700;
    color: var(--vhs-primary);
    margin-bottom: 0.5rem;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .vhs-header,
    .vhs-footer,
    .vhs-btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    .vhs-section {
        page-break-inside: avoid;
    }
}

/* ========================================
   Accessibility Improvements
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--vhs-primary);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   Dark Mode Support (Optional)
   ======================================== */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode support
    :root {
        --vhs-white: #1e293b;
        --vhs-gray-900: #f8fafc;
        --vhs-gray-800: #f1f5f9;
        --vhs-gray-700: #e2e8f0;
        --vhs-gray-600: #cbd5e1;
    }
    */
}

/* ========================================
   Custom Scrollbar (Webkit browsers)
   ======================================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--vhs-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--vhs-gray-400);
    border-radius: var(--vhs-radius-md);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--vhs-gray-500);
}

/* ========================================
   Selection Style
   ======================================== */
::selection {
    background-color: var(--vhs-primary);
    color: var(--vhs-white);
}

::-moz-selection {
    background-color: var(--vhs-primary);
    color: var(--vhs-white);
}
