/* ============================================
   ShoreTimer - Help Centre Styles
   ============================================ */

/* Hero */
.help-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.help-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L30 60M0 30L60 30' stroke='%23ffffff' stroke-width='0.5' stroke-opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.help-hero-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.help-hero h1 {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
}

.help-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Search */
.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-box input:focus {
    outline: 3px solid var(--coral);
    outline-offset: 2px;
}

.search-box svg {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--gray-400);
}

/* Quick Links */
.quick-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.quick-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.2s ease;
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* Content */
.help-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

/* Category Cards */
.help-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.category-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.category-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--coral) 0%, #ff8787 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.category-icon.teal {
    background: linear-gradient(135deg, var(--teal) 0%, #4db6ac 100%);
}

.category-icon.navy {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.category-info h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.category-info p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Help Topics Accordion */
.help-topics {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.help-topic {
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.help-topic:hover {
    border-color: var(--teal);
}

.help-topic.active {
    border-color: var(--teal);
    box-shadow: 0 2px 8px rgba(38, 166, 154, 0.15);
}

.help-topic-btn {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    transition: background 0.2s ease;
}

.help-topic-btn:hover {
    background: var(--gray-100);
}

.help-topic-btn svg {
    width: 18px;
    height: 18px;
    color: var(--coral);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.help-topic.active .help-topic-btn svg {
    transform: rotate(180deg);
}

.help-topic-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.help-topic-inner {
    padding: 0 1.25rem 1.25rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.help-topic-inner p {
    margin-bottom: 0.75rem;
}

.help-topic-inner p:last-child {
    margin-bottom: 0;
}

.help-topic-inner ul {
    margin: 0.5rem 0 0.75rem 1.25rem;
}

.help-topic-inner li {
    margin-bottom: 0.35rem;
}

.help-topic-inner strong {
    color: var(--navy);
}

.help-topic-inner code {
    background: var(--gray-100);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Guide Section */
.guide-section {
    margin-bottom: 4rem;
}

.step-guide {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.step-guide h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 2rem;
    text-align: center;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--coral);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.35rem;
}

.step-content p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.step-guide .tips-box {
    margin: 2rem 0 0;
}

/* Contact Cards - Help page specific */
.help-content .contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.help-content .contact-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    width: 64px;
    height: 64px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    color: var(--coral);
}

.contact-icon.teal {
    background: rgba(38, 166, 154, 0.1);
}

.contact-icon.teal svg {
    color: var(--teal);
}

.contact-icon.coral {
    background: rgba(255, 107, 107, 0.1);
}

.contact-icon.coral svg {
    color: var(--coral);
}

.contact-icon.navy {
    background: rgba(44, 62, 80, 0.1);
}

.contact-icon.navy svg {
    color: var(--navy);
}

.help-content .contact-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.help-content .contact-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.help-content .contact-card .btn {
    padding: 0.75rem 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .help-hero {
        padding: 6rem 1.5rem 3rem;
    }

    .help-hero h1 {
        font-size: 2rem;
    }

    .help-hero p {
        font-size: 1rem;
    }

    .help-content {
        padding: 2rem 1.5rem 3rem;
    }

    .help-categories {
        grid-template-columns: 1fr;
    }

    .category-card {
        padding: 1.5rem;
    }

    .step-guide {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .quick-links {
        flex-direction: column;
        align-items: center;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .category-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
