/* Additional custom styles that complement Tailwind */

/* Override gray-400 text color to lighter shade */
.text-gray-400 {
    color: #ECECFB !important;
}

/* Global link color */
a:not([class]) {
    color: #d4af37;
}
a:not([class]):hover {
    color: #f4d03f;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0f0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1a472a 0%, #1e3a1e 100%);
    border-radius: 5px;
    border: 2px solid #0a0f0a;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #d4af37 0%, #996515 100%);
}

/* Selection highlight */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(212, 175, 55, 0.3);
    color: white;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Loading animation for images */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.1);
}

/* Text truncation utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive typography */
@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* 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;
        scroll-behavior: auto !important;
    }
}

/* Download button - green gradient styling (mirrors btn-gold) */
.btn-green {
    background: linear-gradient(135deg, #006200, #00a000 50%, #006200) !important;
    background-size: 200% 200% !important;
    color: #0a0f0a !important;
    transition: all 0.3s ease !important;
    animation: pulse-glow-green 2s ease-in-out infinite;
}

.btn-green:hover {
    background-position: 100% 100% !important;
    box-shadow: 0 0 30px rgba(0, 98, 0, 0.5) !important;
    transform: translateY(-2px) !important;
}

@keyframes pulse-glow-green {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 98, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 98, 0, 0.6);
    }
}

/* Input field styling */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="search"],
input:not([type]),
textarea,
select {
    color: #000000 !important;
}

/* Button styling for submit buttons and buttons in content */
input[type="submit"],
input[type="button"],
button:not([class*="btn-"]):not([class*="carousel"]):not([onclick*="toggle"]):not([onclick*="Slide"]) {
    background: linear-gradient(135deg, #1a472a 0%, #0d2818 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:not([class*="btn-"]):not([class*="carousel"]):not([onclick*="toggle"]):not([onclick*="Slide"]):hover {
    background: linear-gradient(135deg, #1e5a32 0%, #0f3020 100%) !important;
    border-color: rgba(212, 175, 55, 0.5) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(212, 175, 55, 0.2) !important;
    transform: translateY(-2px) !important;
}