/**
 * Valot Theme Custom Styles
 */

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container utilities */
.valot-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.valot-container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section spacing */
.valot-section {
    padding: 80px 0;
}

.valot-section--small {
    padding: 40px 0;
}

.valot-section--large {
    padding: 120px 0;
}

/* Header styles */
.wp-site-blocks > header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.wp-site-blocks > header.is-scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

/* Extension grid layout */
.valot-extensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(484px, 1fr));
    gap: 18px;
    padding: 30px 0 0;
}

/* Badge utilities */
.valot-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 35px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 1;
    letter-spacing: -0.36px;
}

.valot-badge--orange {
    background: #ffa348;
    color: #782b00;
}

.valot-badge--green {
    background: #8ff0a4;
    color: #026c3b;
}

.valot-badge--blue {
    background: #99c1f1;
    color: #003679;
}

.valot-badge--gray {
    background: #c0bfbc;
    color: white;
}

/* Button styles */
.wp-block-button__link {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
}

/* Feature tabs */
.valot-feature-tabs {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 31px;
    padding: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: fit-content;
    margin: 0 auto;
}

.valot-feature-tab {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 16px;
    border-radius: 32px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.48px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.valot-feature-tab:hover {
    background: rgba(255, 255, 255, 0.15);
}

.valot-feature-tab.is-active {
    background: white;
    color: black;
}

/* Core vs Extended toggle */
.valot-core-toggle {
    border: 1px solid #57e389;
    border-radius: 69px;
    padding: 4px;
    display: inline-flex;
    gap: 20px;
}

.valot-core-toggle__item {
    padding: 10px 30px;
    border-radius: 71px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    color: rgba(0, 0, 0, 0.8);
}

.valot-core-toggle__item:hover {
    opacity: 0.8;
}

.valot-core-toggle__item.is-active {
    background: #57e389;
    color: rgba(0, 0, 0, 0.8);
}

/* Pros and cons lists */
.valot-pros-cons {
    display: flex;
    gap: 20px;
    padding: 14px 10px;
}

.valot-pros,
.valot-cons {
    flex: 1;
}

.valot-pros ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.valot-pros li {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -0.48px;
    color: #26823b;
    padding-left: 24px;
    margin-bottom: 10px;
    position: relative;
}

.valot-pros li:before {
    content: '•';
    position: absolute;
    left: 0;
}

.valot-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.valot-cons li {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -0.48px;
    color: #c01c28;
    padding-left: 24px;
    margin-bottom: 10px;
    position: relative;
}

.valot-cons li:before {
    content: '•';
    position: absolute;
    left: 0;
}

/* Responsive utilities */
@media (max-width: 1024px) {
    .valot-extensions-grid {
        grid-template-columns: 1fr;
    }

    .valot-section {
        padding: 60px 0;
    }

    .valot-section--large {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .valot-container,
    .valot-container-wide {
        padding: 0 16px;
    }

    .valot-section {
        padding: 40px 0;
    }

    .valot-section--large {
        padding: 60px 0;
    }

    .valot-feature-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .valot-feature-tab {
        text-align: center;
    }

    .valot-pros-cons {
        flex-direction: column;
    }

    .valot-core-toggle {
        flex-direction: column;
        gap: 10px;
    }

    .valot-core-toggle__item {
        font-size: 18px;
    }
}

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

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

/* Accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    word-wrap: normal !important;
}

/* Print styles */
@media print {
    header,
    footer {
        display: none;
    }
}
