/**
 * FAQs Page Styles
 * Harrison Classic Warehouse - Spare Parts Shop Plugin
 */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* Base Styles */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.sps-faqs-page {
    width: 100%;
    min-height: 100vh;
    background: #f9f9f9;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* Hero Section */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.sps-faqs-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e3d4d 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sps-faqs-hero__content {
    max-width: 800px;
    margin: 0 auto;
    animation: slideInDown 0.8s ease-out;
}

.sps-faqs-hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.sps-faqs-hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 300;
    opacity: 0.95;
}

.sps-faqs-hero__description {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.sps-faqs-hero__link {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.sps-faqs-hero__link:hover {
    color: #ffed4e;
    text-decoration: underline;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* Main Container */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.sps-faqs-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* Search Bar */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.sps-faqs-search {
    position: relative;
    margin-bottom: 40px;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.sps-faqs-search__input {
    width: 100%;
    padding: 18px 50px 18px 20px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sps-faqs-search__input:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 4px 16px rgba(42, 82, 152, 0.15);
}

.sps-faqs-search__input::placeholder {
    color: #999;
}

.sps-faqs-search__icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.6;
    pointer-events: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* Category Buttons */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.sps-faqs-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    justify-content: center;
    animation: fadeIn 0.6s ease-out 0.3s both;
}

.sps-faqs-category-btn {
    padding: 10px 24px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.sps-faqs-category-btn:hover {
    border-color: #2a5298;
    color: #2a5298;
}

.sps-faqs-category-btn--active {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-color: #2a5298;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* Accordion Styles */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.sps-faqs-accordion {
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.sps-faqs-section {
    margin-bottom: 50px;
    display: none;
}

.sps-faqs-section--visible,
.sps-faqs-section[data-category="all"] {
    display: block;
}

.sps-faqs-section__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2a5298;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* FAQ Items */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.sps-faq-item {
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.sps-faq-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* FAQ Item Header */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.sps-faq-item__header {
    width: 100%;
    padding: 20px;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1rem;
}

.sps-faq-item__header:hover {
    background: #f5f5f5;
}

.sps-faq-item--open .sps-faq-item__header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.sps-faq-item__title {
    font-weight: 600;
    flex: 1;
    margin: 0;
    line-height: 1.4;
}

.sps-faq-item__icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.sps-faq-item--open .sps-faq-item__icon {
    transform: rotate(45deg);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* FAQ Item Content */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.sps-faq-item__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.sps-faq-item--open .sps-faq-item__content {
    max-height: 1000px;
}

.sps-faq-item__text {
    padding: 20px;
    background: white;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
}

.sps-faq-item__text p {
    margin: 0 0 15px 0;
}

.sps-faq-item__text p:last-child {
    margin-bottom: 0;
}

.sps-faq-item__text ul,
.sps-faq-item__text ol {
    margin: 15px 0;
    padding-left: 25px;
}

.sps-faq-item__text li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.sps-faq-item__text strong {
    color: #1e3c72;
    font-weight: 600;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* Contact Section */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.sps-faqs-contact {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 50px;
    border-radius: 12px;
    text-align: center;
    margin-top: 60px;
    animation: slideInUp 0.8s ease-out;
}

.sps-faqs-contact h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.sps-faqs-contact > p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.sps-faqs-contact__methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.sps-faqs-contact__method {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.sps-faqs-contact__method:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.sps-faqs-contact__label {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
}

.sps-faqs-contact__method p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.sps-faqs-contact__method a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sps-faqs-contact__method a:hover {
    color: #ffed4e;
    text-decoration: underline;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* Animations */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* Hidden State - Hidden Categories */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.sps-faqs-section--hidden {
    display: none !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* Responsive Design */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Tablet Landscape (769px - 1024px) */
@media (max-width: 1024px) {
    .sps-faqs-hero {
        padding: 60px 20px;
    }

    .sps-faqs-hero__title {
        font-size: 2.8rem;
    }

    .sps-faqs-hero__subtitle {
        font-size: 1.3rem;
    }

    .sps-faqs-section__title {
        font-size: 1.5rem;
    }
}

/* Tablet Portrait (481px - 768px) */
@media (max-width: 768px) {
    .sps-faqs-hero {
        padding: 50px 15px;
    }

    .sps-faqs-hero__title {
        font-size: 2.2rem;
    }

    .sps-faqs-hero__subtitle {
        font-size: 1.1rem;
    }

    .sps-faqs-hero__description {
        font-size: 0.95rem;
    }

    .sps-faqs-container {
        margin: 40px auto;
        padding: 0 15px;
    }

    .sps-faqs-categories {
        gap: 8px;
    }

    .sps-faqs-category-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .sps-faq-item__header {
        padding: 16px;
    }

    .sps-faq-item__text {
        padding: 16px;
    }

    .sps-faq-item__title {
        font-size: 0.95rem;
    }

    .sps-faq-item__icon {
        font-size: 1.2rem;
    }

    .sps-faqs-contact {
        padding: 40px 20px;
    }

    .sps-faqs-contact h2 {
        font-size: 1.6rem;
    }

    .sps-faqs-contact > p {
        font-size: 0.95rem;
    }

    .sps-faqs-contact__methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile Large (361px - 480px) */
@media (max-width: 480px) {
    .sps-faqs-page {
        min-height: auto;
    }

    .sps-faqs-hero {
        padding: 40px 12px;
    }

    .sps-faqs-hero__title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .sps-faqs-hero__subtitle {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .sps-faqs-hero__description {
        font-size: 0.85rem;
    }

    .sps-faqs-container {
        margin: 30px auto;
        padding: 0 12px;
    }

    .sps-faqs-search {
        margin-bottom: 25px;
    }

    .sps-faqs-search__input {
        padding: 14px 40px 14px 16px;
        font-size: 0.9rem;
    }

    .sps-faqs-categories {
        gap: 6px;
        margin-bottom: 25px;
    }

    .sps-faqs-category-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .sps-faq-item {
        margin-bottom: 12px;
    }

    .sps-faq-item__header {
        padding: 14px;
    }

    .sps-faq-item__text {
        padding: 14px;
        font-size: 0.9rem;
    }

    .sps-faq-item__title {
        font-size: 0.9rem;
    }

    .sps-faq-item__link {
        gap: 8px;
    }

    .sps-faq-item__icon {
        font-size: 1rem;
    }

    .sps-faqs-section__title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .sps-faqs-contact {
        padding: 30px 15px;
        margin-top: 40px;
        border-radius: 8px;
    }

    .sps-faqs-contact h2 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .sps-faqs-contact > p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .sps-faqs-contact__method {
        padding: 18px;
    }

    .sps-faqs-contact__label {
        font-size: 0.9rem;
    }

    .sps-faqs-contact__method p {
        font-size: 0.85rem;
    }
}

/* Mobile Small (321px - 360px) */
@media (max-width: 360px) {
    .sps-faqs-hero__title {
        font-size: 1.5rem;
    }

    .sps-faqs-hero__subtitle {
        font-size: 0.85rem;
    }

    .sps-faqs-search__input {
        padding: 12px 36px 12px 14px;
        font-size: 0.85rem;
    }

    .sps-faqs-category-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .sps-faq-item__header {
        padding: 12px;
    }

    .sps-faq-item__title {
        font-size: 0.85rem;
    }

    .sps-faq-item__text {
        font-size: 0.85rem;
    }

    .sps-contact h2 {
        font-size: 1.2rem;
    }
}

/* Ultra-Small Mobile (<321px) */
@media (max-width: 320px) {
    .sps-faqs-hero {
        padding: 30px 8px;
    }

    .sps-faqs-hero__title {
        font-size: 1.3rem;
    }

    .sps-faqs-hero__subtitle {
        font-size: 0.8rem;
    }

    .sps-faqs-container {
        padding: 0 8px;
    }

    .sps-faqs-search__input {
        padding: 10px 32px 10px 12px;
        font-size: 0.8rem;
    }

    .sps-faqs-category-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .sps-faq-item__header {
        padding: 10px;
    }

    .sps-faq-item__text {
        padding: 10px;
        font-size: 0.8rem;
    }

    .sps-faq-item__title {
        font-size: 0.8rem;
    }

    .sps-faq-item__icon {
        font-size: 1rem;
    }

    .sps-faqs-contact {
        padding: 20px 10px;
    }

    .sps-faqs-contact h2 {
        font-size: 1.1rem;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* Accessibility */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (prefers-reduced-motion: reduce) {
    .sps-faqs-page,
    .sps-faq-item__header,
    .sps-faq-item__content,
    .sps-faq-item__icon,
    .sps-faqs-category-btn,
    .sps-faqs-search__input,
    .sps-faqs-contact,
    .sps-faqs-contact__method {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus states for keyboard navigation */
.sps-faq-item__header:focus-visible,
.sps-faqs-category-btn:focus-visible,
.sps-faqs-search__input:focus-visible {
    outline: 3px solid #2a5298;
    outline-offset: 2px;
}
