/* ===== HEADER STYLES ===== */

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 400;
    background-color: hsla(214.09090909090907, 68%, 87%, 1);
    background-image: radial-gradient(circle at 49% 81%, hsla(210, 74%, 84%, 1) 10%, transparent 54%), radial-gradient(circle at 63% 45%, hsla(307.05882352941165, 25%, 86%, 1) 13.851429516956863%, transparent 54%), radial-gradient(circle at 37% 27%, hsla(259.4117647058824, 51%, 87%, 1) 23.21692833533654%, transparent 54%);
    background-blend-mode: normal, normal, normal;
    background-attachment: fixed;
    background-size: 100vw 100vh;
    background-repeat: no-repeat;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--abyss);
    font-weight: 600;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.header-logo a:hover {
    color: var(--brand-blue-500);
}

.header-logo img {
    display: block;
    width: 40px;
    height: 40px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-nav-link {
    text-decoration: none;
    color: var(--slate);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.header-nav-link:hover {
    color: var(--abyss);
}

.header-nav-cta {
    background-color: var(--brand-blue-500);
    color: var(--clean) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.header-nav-cta:hover {
    background-color: var(--royal);
}

.header-nav-tools::before {
    content: "Free Tools";
}

.header-nav-start::before {
    content: "Start Chatting";
}

/* ===== BREADCRUMB NAVIGATION ===== */

.breadcrumb-nav {
    padding: 1rem 0;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

.breadcrumb-nav a {
    color: var(--brand-blue-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
    color: var(--royal);
}

.breadcrumb-nav span {
    color: var(--slate);
}

/* ===== FOOTER STYLES ===== */

footer {
    border-top: 1px solid var(--rain);
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    width: 100%;
    padding: 3rem 2rem 2rem;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

footer > div {
    padding: 0 1rem;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

footer > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

footer > div:first-child img {
    width: 32px;
    height: 32px;
}

footer > div:first-child h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--abyss);
    margin: 0;
}

footer > div:first-child p {
    font-size: 0.875rem;
    color: var(--asphalt);
    margin: 0 0 1rem 0;
}

footer > div:first-child ul {
    margin-top: 0.5rem;
}

footer h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--abyss);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

footer li {
    margin: 0;
    font-size: 0.875rem;
}

footer a {
    color: var(--slate);
    text-decoration: none;
    transition: color 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

footer a:hover {
    color: var(--brand-blue-500);
}

.footer-section-title a {
    color: var(--abyss);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section-title a:hover {
    color: var(--brand-blue-500);
}

.footer-legal-links,
.footer-company-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-legal-links a,
.footer-company-links a {
    font-size: 0.875rem;
    color: var(--slate);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover,
.footer-company-links a:hover {
    color: var(--brand-blue-500);
}

.footer-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.footer-social-icons a:hover {
    opacity: 1;
}

.footer-social-icons img {
    display: block;
    transition: filter 0.3s ease;
}

/* Social icon hover effects */
.footer-social-tiktok:hover img {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.footer-social-instagram:hover img {
    filter: brightness(0) saturate(100%) invert(12%) sepia(93%) saturate(7471%) hue-rotate(334deg) brightness(107%) contrast(101%);
}

.footer-social-linkedin:hover img {
    filter: brightness(0) saturate(100%) invert(20%) sepia(96%) saturate(2159%) hue-rotate(201deg) brightness(89%) contrast(101%);
}

.footer-social-twitter:hover img {
    filter: brightness(0) saturate(100%) invert(45%) sepia(89%) saturate(2613%) hue-rotate(191deg) brightness(94%) contrast(101%);
}

.footer-social-facebook:hover img {
    filter: brightness(0) saturate(100%) invert(20%) sepia(100%) saturate(4166%) hue-rotate(224deg) brightness(102%) contrast(101%);
}

.footer-social-producthunt:hover img {
    filter: brightness(0) saturate(100%) invert(46%) sepia(76%) saturate(4297%) hue-rotate(347deg) brightness(103%) contrast(101%);
}

/* ===== SHARED COMPONENTS ===== */

/* Shared Button Styles */
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-transform: capitalize;
}

/* Anchor buttons: keep button colors across link states */
a.btn,
a.btn:link,
a.btn:visited {
    color: inherit;
    text-decoration: none;
}

a.btn:hover,
a.btn:active,
a.btn:focus {
    color: inherit;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--brand-pink-300);
    color: var(--clean);
    border-color: var(--brand-pink-300);
}

.btn-primary:hover:not(.loading) {
    background-color: var(--brand-pink-500);
    border-color: var(--brand-pink-500);
    transform: translateY(-1px);
}

.btn-primary:hover {
    color: var(--clean);
}

.btn-secondary {
    background-color: var(--rain);
    color: var(--slate);
    border-color: var(--rain);
}

.btn-secondary:hover {
    background-color: var(--calm-white);
    color: var(--slate);
    border-color: var(--calm-white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn.loading {
    cursor: not-allowed;
    background-color: var(--steel);
    border-color: var(--steel);
}

.btn .button-text {
    display: inline;
}

.btn .button-spinner {
    display: none;
}

.btn.loading .button-text {
    display: none;
}

.btn.loading .button-spinner {
    display: inline;
}

.cta-buttons {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

/* FAQ Styles */
.faq {
    padding: 1.5rem 0;
    margin: 2rem 0;
}

.faq h2 {
    text-align: center;
    margin: 0 0 1.5rem 0;
}

.faq-list {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--rain);
    border-radius: 12px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--abyss);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    border-radius: 12px;
}

.faq-question:hover {
    background-color: var(--white-80);
    border-radius: 12px;
}

.faq-item[open] .faq-question {
    border-radius: 12px 12px 0 0;
}

.faq-item[open] .faq-question:hover {
    background-color: var(--white-80);
    border-radius: 12px 12px 0 0;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--brand-pink-300);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 1.25rem 1.5rem;
    animation: fadeIn 0.3s ease;
}

.faq-answer p {
    margin: 0;
    color: var(--slate);
    font-size: 1rem;
    line-height: 1.6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Related Links Styles */
.related-links {
    padding: 1.5rem 0;
    margin: 2rem 0;
}

.related-links h2 {
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.related-list li a {
    font-weight: 600;
}

.related-note {
    display: block;
    color: var(--slate);
    font-size: 0.95rem;
}

/* Tools Grid and Card Components */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.tool-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.tool-card-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.tool-card-title {
    color: var(--abyss);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.tool-card-description {
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.tool-card-badge {
    align-self: flex-start;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--slate);
    background: var(--rain);
    border: 1px solid var(--cloud);
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.75rem;
}

/* ===== MEDIA QUERIES ===== */

/* Desktop: Related List Grid */
@media (min-width: 768px) {
    .related-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .related-list li {
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        padding: 1rem;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    footer {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1.5rem;
    }
    
    footer > div {
        padding: 0 0.75rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header */
    .sticky-header {
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
        gap: 1rem;
        background-color: var(--light-lavanda);
        background-image: none;
    }
    
    .header-nav {
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .header-nav-link {
        font-size: 0.85rem;
    }
    
    .header-nav-cta {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    
    .header-logo a {
        font-size: 1rem;
    }
    
    .header-logo img {
        width: 28px;
        height: 28px;
    }
    
    .header-nav-tools::before {
        content: "Tools";
    }
    
    .header-nav-start::before {
        content: "Start";
    }
    
    /* Footer */
    footer {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding: 2rem 1rem 1.5rem;
    }
    
    footer > div {
        padding: 0 0.5rem;
    }
    
    /* Shared Components */
    .related-links,
    .faq {
        margin: 1rem 0;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tool-card {
        padding: 1.25rem;
    }
    
    .tool-card-image {
        width: 50px;
        height: 50px;
    }
    
    .tool-card-icon {
        width: 40px;
        height: 40px;
    }
    
    .tool-card-title {
        font-size: 1rem;
    }
    
    .tool-card-description {
        font-size: 0.9rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 1rem 1.25rem;
    }
    
    .faq-answer p {
        font-size: 0.95rem;
    }

    /* Mobile Button Styles */
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    footer {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem 1.5rem;
    }
    
    footer > div {
        padding: 0 0.5rem;
    }
    
    .footer-brand {
        text-align: center;
        align-items: center;
    }

    .sticky-header {
        z-index: 600;
    }
}