/* ============================================
   BANAH CORPORATION , Custom Styles
   ============================================ */

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

/* Selection color */
::selection {
    background-color: rgba(221, 51, 51, 0.2);
    color: #1a1a1a;
}

/* Alpine.js cloak */
[x-cloak] {
    display: none !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f9fafb;
}
::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #dd3333;
}

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(221, 51, 51, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(221, 51, 51, 0); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-red {
    animation: pulse-red 2s ease-in-out infinite;
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #dd3333, #e85555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass effect */
.bg-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Image hover zoom */
.img-zoom {
    overflow: hidden;
}
.img-zoom img {
    transition: transform 0.6s ease;
}
.img-zoom:hover img {
    transform: scale(1.05);
}

/* Custom focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #dd3333;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Navigation sub-menu positioning fix */
.sub-menu {
    transform: translateY(4px);
}
.group:hover .sub-menu {
    transform: translateY(0);
}

/* WordPress-specific overrides */
.wp-block-image img {
    border-radius: 12px;
}

.entry-content a {
    color: #dd3333;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.entry-content a:hover {
    color: #e85555;
}

/* Fix for admin bar overlap */
body.admin-bar header.fixed {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar header.fixed {
        top: 46px;
    }
}

/* Custom logo sizing */
.custom-logo {
    max-height: 48px;
    width: auto;
}

/* Modal animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Form select arrow */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 44px;
}
