/**
 * Landing Page Styles - Clean Modern Style
 */

.mwt-landing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Hero Section */
.mwt-hero {
    background: linear-gradient(120deg, #1a5f7a 0%, #66b2b2 100%);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: -20px;
    margin-bottom: 30px;
    padding: 50px 20px;
    text-align: center;
    color: #fff;
    position: relative;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
}

.mwt-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.03) 100%);
}

.mwt-hero__content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.mwt-hero__content h1 {
    font-size: 2.8em;
    margin: 0 0 15px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mwt-hero__content p {
    font-size: 1.1em;
    margin: 0 0 30px;
    opacity: 0.9;
    font-weight: 300;
}

.mwt-hero__search {
    position: relative;
    max-width: 550px;
    margin: 0 auto;
}

.mwt-hero__search input {
    width: 100%;
    padding: 16px 50px 16px 25px;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.mwt-hero__search input:focus {
    outline: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.mwt-hero__search-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #1a5f7a;
    transition: all 0.3s ease;
}

.mwt-hero__search-btn:hover {
    color: #66b2b2;
    transform: translateY(-50%) scale(1.1);
}

/* Live Search Results */
.mwt-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px;
    margin-top: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.mwt-search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mwt-search-results__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1px;
    background: #f0f0f0;
}

.mwt-search-results__header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    color: #1a5f7a;
    font-size: 0.95em;
    font-weight: 500;
    background: #fff;
}

.mwt-search-results__item {
    display: block;
    padding: 18px 25px;
    text-decoration: none;
    background: #fff;
    transition: all 0.2s ease;
}

.mwt-search-results__item:hover {
    background: #f8f9fa;
}

.mwt-search-results__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mwt-search-results__title {
    color: #333;
    font-weight: 500;
    font-size: 1.1em;
}

.mwt-search-results__category {
    color: #666;
    font-size: 0.9em;
}

.mwt-search-results__empty {
    padding: 25px;
    text-align: center;
    color: #666;
    font-style: italic;
    background: #fff;
    grid-column: 1 / -1;
}

.mwt-search-results__loading {
    padding: 25px;
    text-align: center;
    color: #1a5f7a;
    background: #fff;
    font-weight: 500;
}

.mwt-search-results__error {
    padding: 25px;
    text-align: center;
    color: #dc3545;
    background: #fff;
    font-weight: 500;
}

/* Layout */
.mwt-layout {
    display: flex;
    flex-direction: row-reverse;
    gap: 30px;
    position: relative;
}

/* Sidebar */
.mwt-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 32px;
    height: calc(100vh - 64px);
    padding: 20px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.mwt-sidebar__search {
    margin-bottom: 20px;
}

.mwt-sidebar__search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.mwt-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mwt-sidebar__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mwt-sidebar__link:hover {
    background: #f8f9fa;
    color: #40c4aa;
}

.mwt-sidebar__count {
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
}

/* Main Content */
.mwt-content {
    flex: 1;
    min-width: 0;
}

/* Category Sections */
.tln {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 4px;
    padding: 20px;
}

/* Category Headers */
.hh {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 15px;
    padding: 6px;
    position: relative;
    background: linear-gradient(90deg, #40c4aa, #fff);
}

.hh::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, #40c4aa 0%, #40c4aa 50%, transparent 100%);
}

/* Tools List */
.tln ul {
    padding: 0 !important; /* Override WordPress theme padding */
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 2px;
}

/* Override WordPress theme padding for any nested lists */
.tln ul ul,
.tln ol,
.tln ol ul,
.tln ul ol {
    padding: 0 !important;
}

.tln ul li {
    flex: 0 0 calc(33.333% - 2px);
}

.tln ul li a {
    color: #000;
    font-size: 15px;
    display: block;
    padding: 12px 15px;
    font-weight: 400;
    text-decoration: none;
    background: #f2f7f9;
    transition: all 0.2s ease;
    border-radius: 3px;
}

.tln ul li a:hover {
    background: #f2f7f9;
    color: #000;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .mwt-hero {
        padding: 40px 20px;
    }

    .mwt-hero__content h1 {
        font-size: 2.2em;
    }

    .mwt-hero__content p {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .mwt-hero__search input {
        padding: 14px 45px 14px 20px;
        font-size: 1em;
    }

    .mwt-search-results__grid {
        grid-template-columns: 1fr;
    }
    
    .mwt-search-results {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 16px 16px 0 0;
        max-height: 80vh;
    }
} 