@import "tailwindcss";

@theme {
    /* Custom scrollbar colors */
    --color-scrollbar-track: rgba(0, 0, 0, 0.1);
    --color-scrollbar-thumb: rgba(0, 0, 0, 0.3);
    --color-scrollbar-thumb-hover: rgba(0, 0, 0, 0.5);
    /* Light mode scrollbar colors */
    --color-light-scrollbar-track: rgba(0, 0, 0, 0.05);
    --color-light-scrollbar-thumb: rgba(0, 0, 0, 0.2);
    --color-light-scrollbar-thumb-hover: rgba(0, 0, 0, 0.3);
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    @apply w-2;
}

::-webkit-scrollbar-track {
    background: var(--color-scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--color-scrollbar-thumb);
    @apply rounded;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-scrollbar-thumb-hover);
}

.light ::-webkit-scrollbar-track {
    background: var(--color-light-scrollbar-track);
}

.light ::-webkit-scrollbar-thumb {
    background: var(--color-light-scrollbar-thumb);
}

.light ::-webkit-scrollbar-thumb:hover {
    background: var(--color-light-scrollbar-thumb-hover);
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Post card hover effects */
.post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
}

/* Navigation menu enhancements */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    text-decoration: none;
    padding: 0.5rem 1rem;
    color: inherit;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: #10b981;
}

/* Search form styling */
.search-form {
    position: relative;
}

.search-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    color: inherit;
    transition: border-color 0.2s ease;
}

.light .search-field {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.search-field:focus {
    border-color: #10b981;
}

/* Comment section styling */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.light .comment-body {
    background: rgba(0, 0, 0, 0.05);
}

/* Widget styling */
.widget {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.light .widget {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: inherit;
}

div#sky-search-bg-gradient-bottom,
div#sky-search-bg-gradient-top {
    z-index: -1;
}

/* Button styling */
.wp-block-button__link {
    background: #10b981;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.wp-block-button__link:hover {
    background: #059669;
}

/* Pagination styling */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination a {
    background: rgba(0, 0, 0, 0.1);
    color: inherit;
}

.pagination a:hover {
    color: white;
}

.pagination .current {
    color: white;
}

.archive #search-main-section {
    margin-top: 0 !important;
}

article.main-content {
    color: #000;
    font-weight: 300;
}

#desktop-primary-menu li.menu-item>a {
    display: flex;
}

ul#desktop-primary-menu {
    width: 100%;
    max-width: 100%;
    justify-content: center;
}

div#logo-header {
    flex: 0 0 calc(20% - 5px);
}

div#auth-button {
    flex: 0 0 calc(20% - 5px);
}

div#m-menu_col {
    flex: 0 0 calc(60% - 10px);
}

.search-icon_header {
    display: unset;
    text-decoration: underline;
    padding: unset;
    color: inherit;
    transition: unset;
    margin: 0 0 0 auto;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

div#footer-about .widget_media_image img.image.wp-image-284.attachment-medium.size-medium {
    width: 100%;
    max-width: 198px !important;
}

.wbl-social-size-medium .wbl-social-icon-wrapper {
    width: 39px;
    height: 39px;
}

.wbl-social-size-medium .wbl-social-icon-wrapper svg {
    width: 27px;
    height: 27px;
}

.footer-column ul li.menu-item a {
    color: #99a1af;
    font-weight: 300;
    font-size: 16px;
}

.footer-column ul li.menu-item a:hover {
    color: #fff;
}

.footer-column .menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-column.f-horizontal .menu {
    flex-direction: row;
}

.footer-column.f-horizontal .menu li a {
    font-size: 14px;
}

.webboard-container {
    padding: 0;
}

.webboard-form-container {
    border: 1px solid #ccc;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: none;
}

.webboard-title {
    font-size: 24px;
    font-weight: 600;
}

.webboard-no-comments {
    color: #000;
}

@media (max-width: 1024px) {
    .webboard-title {
        font-size: 22px;
    }

    /* Mobile submenu styling */
    ul.submenu {
        display: none;
        flex-direction: column;
    }

    ul.submenu:not(.hidden) {
        display: flex;
    }

    /* Active state for submenu toggle button */
    button[data-submenu-toggle].active {
        background-color: rgba(249, 115, 22, 0.1);
        color: #F05A28;
    }

    button[data-submenu-toggle].active .submenu-icon {
        color: #F05A28;
        transform: rotate(180deg);
    }

    div#announcement-search-right-col,
    div#lesson-search-right-col,
    div#drone-guide-search-right-col,
    div#faq-search-right-col {
        display: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    div#logo-header {
        flex: 0 0 calc(50% - 5px);
    }

    div#auth-button {
        flex: 0 0 calc(50% - 5px);
    }

    div#m-menu_col {
        flex: 0 0 calc(0% - 10px);
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    #main-navigation {
        background: #000;
    }

    #main-navigation.sticky {
        background: unset;
    }

    /* Ensure consistent container width on mobile */
    #main-navigation .container,
    #main-navigation.sticky .container {
        max-width: 100%;
        padding-left: 1.5em;
        padding-right: 1.5em;
    }

    div#footer-about {
        align-items: center;
        text-align: center;
    }

    /* Mobile submenu styling */
    ul.submenu {
        display: none;
        flex-direction: column;
    }

    ul.submenu:not(.hidden) {
        display: flex;
    }

    /* Active state for submenu toggle button */
    button[data-submenu-toggle].active {
        background-color: rgba(249, 115, 22, 0.1);
        color: #F05A28;
    }

    button[data-submenu-toggle].active .submenu-icon {
        color: #F05A28;
        transform: rotate(180deg);
    }
}

/* Print styles */
@media print {

    .site-header,
    .site-footer,
    .navigation,
    .theme-toggle,
    .search-form {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .post-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
}