/*
 * Ikkonix Software - Custom Styles
 * This file contains custom CSS for elements not covered by Tailwind CSS
 */

/* Color Palette: Blue Primary + Orange Accent (80/20) */
:root {
    /* Primary Blue (80% usage) */
    --primary: #2563eb;        /* blue-600 */
    --primary-dark: #1d4ed8;   /* blue-700 */
    --primary-light: #eff6ff;  /* blue-50 */

    /* Accent Orange (20% usage - awards, stats, laser sections) */
    --accent: #f97316;         /* orange-500 */
    --accent-dark: #ea580c;    /* orange-600 */
    --accent-light: #fff7ed;   /* orange-50 */

    /* Neutral */
    --gray-900: #111827;
    --gray-50: #f9fafb;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar (optional, for modern browsers) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2563eb; /* blue-600 */
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8; /* blue-700 */
}

/* Focus states for accessibility */
*:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2563eb;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Print styles */
@media print {
    nav, footer, .no-print {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Form validation styles */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown),
select:invalid:not(:placeholder-shown) {
    border-color: #ef4444; /* red-500 */
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown),
select:valid:not(:placeholder-shown) {
    border-color: #10b981; /* green-500 */
}

/* Loading spinner (optional, for form submission) */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

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

/* Code highlighting (if needed for technical documentation) */
code {
    background-color: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

pre code {
    display: block;
    padding: 16px;
    overflow-x: auto;
}

/* Table responsiveness */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Accessibility: High contrast mode support */
@media (prefers-contrast: high) {
    * {
        border-color: #000 !important;
    }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
