/**
 * Main Stylesheet for Easify Blog Theme
 * Matches the original Nuxt design
 */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-display: swap;
    color: #52525B;
    background-color: #ffffff;
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .container {
        padding: 0 4rem;
    }
}

/* Main Container */
.main-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    line-height: 1.2;
    color: #000;
}

.text-secondary {
    color: #C41E3A;
}

/* Background Colors */
.bg-\[#F8F3F0\] {
    background-color: #F8F3F0;
}

.bg-\[#E4E4E7\] {
    background-color: #E4E4E7;
}

.bg-\[#315F98\] {
    background-color: #315F98;
}

/* Safer (non-bracket) background helpers for WordPress templates */
.bg-easify-beige {
    background-color: #F8F3F0;
}

.bg-easify-gray {
    background-color: #E4E4E7;
}

.bg-easify-blue {
    background-color: #315F98;
}

/* Text Colors */
.text-\[#71717A\] {
    color: #71717A;
}

.text-\[#52525B\] {
    color: #52525B;
}

/* Safer (non-bracket) text helpers */
.text-easify-muted {
    color: #71717A;
}

.text-easify-body {
    color: #52525B;
}

/* Grid Layout */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Gap Utilities */
.gap-x-\[40px\] {
    column-gap: 40px;
}

.gap-y-8 {
    row-gap: 2rem;
}

.gap-x-3 {
    column-gap: 0.75rem;
}

.gap-y-2\.5 {
    row-gap: 0.625rem;
}

.gap-y-3 {
    row-gap: 0.75rem;
}

.gap-x-\[60px\] {
    column-gap: 60px;
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-start {
    justify-content: flex-start;
}

.justify-around {
    justify-content: space-around;
}

.w-full {
    width: 100%;
}

.w-screen {
    width: 100%;
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    overflow-x: hidden;
}

/* Spacing */
.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.py-5 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.pt-8 {
    padding-top: 2rem;
}

.pt-\[120px\] {
    padding-top: 120px;
}

.pb-\[160px\] {
    padding-bottom: 160px;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-5 {
    margin-bottom: 1.25rem;
}

.mb-\[100px\] {
    margin-bottom: 100px;
}

.my-4 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.my-5 {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Border & Rounded */
.border {
    border: 1px solid #e5e7eb;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xs {
    border-radius: 0.25rem;
}

.rounded-\[23px\] {
    border-radius: 23px;
}

.rounded-full {
    border-radius: 9999px;
}

.border-\[4px\] {
    border-width: 4px;
}

.border-white {
    border-color: #ffffff;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

/* Object Fit */
.object-cover {
    object-fit: cover;
}

.object-contain {
    object-fit: contain;
}

/* Aspect Ratio */
.aspect-\[3\/2\] {
    aspect-ratio: 3 / 2;
}

.aspect-3\/2 {
    aspect-ratio: 3 / 2;
}

/* Text Sizes */
.text-\[12px\] {
    font-size: 12px;
}

.text-sm {
    font-size: 0.875rem;
}

.text-\[15px\] {
    font-size: 15px;
}

.text-\[16px\] {
    font-size: 16px;
}

.text-\[18px\] {
    font-size: 18px;
}

.text-\[20px\] {
    font-size: 20px;
}

.text-\[24px\] {
    font-size: 24px;
}

.text-\[36px\] {
    font-size: 36px;
}

.text-\[40px\] {
    font-size: 40px;
}

@media (min-width: 768px) {
    .md\:text-\[16px\] {
        font-size: 16px;
    }

    .md\:text-\[18px\] {
        font-size: 18px;
    }

    .md\:text-\[36px\] {
        font-size: 36px;
    }

    .md\:text-\[40px\] {
        font-size: 40px;
    }

    .md\:px-10 {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    .md\:px-\[13px\] {
        padding-left: 13px;
        padding-right: 13px;
    }

    .md\:px-\[100px\] {
        padding-left: 100px;
        padding-right: 100px;
    }

    .md\:py-\[14px\] {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .md\:py-\[30px\] {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .md\:py-\[80px\] {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .md\:pt-\[100px\] {
        padding-top: 100px;
    }

    .md\:pb-\[160px\] {
        padding-bottom: 160px;
    }

    .md\:min-h-\[220px\] {
        min-height: 220px;
    }

    .md\:max-w-\[815px\] {
        max-width: 815px;
    }

    .md\:-mt-\[200px\] {
        margin-top: -200px;
    }

    .md\:flex-row {
        flex-direction: row;
    }

    .md\:flex-row-reverse {
        flex-direction: row-reverse;
    }
}

/* Font Weight */
.font-light {
    font-weight: 300;
}

.font-semibold {
    font-weight: 600;
}

/* Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-100 {
    transition-duration: 100ms;
}

.duration-200 {
    transition-duration: 200ms;
}

.ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.group:hover .group-hover\:font-semibold {
    font-weight: 600;
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Button Styles */
button {
    cursor: pointer;
    border: none;
    background: none;
}

/* Link Styles */
a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

/* Prose Styles (for blog content) */
.prose {
    max-width: 65ch;
    color: #52525B;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    color: #4b5563;
}

.prose a {
    font-weight: 600;
    color: #1e3a8a;
    text-decoration: none;
}

.prose a:hover {
    text-decoration: underline;
}

.prose ul {
    color: #4b5563;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose strong {
    color: #4b5563;
    font-weight: 600;
}

.prose img {
    margin-top: 2em;
    margin-bottom: 2em;
}

/* Four Line Clamp */
.four-line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .md\:four-line-clamp {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Featured blog summary clamp (match Nuxt featured block feel) */
.featured-summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Single post hero summary clamp (prevents huge auto-excerpts) */
.hero-summary {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination Styles */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    max-width: 330px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .pagination-wrapper {
        max-width: 100%;
    }
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    min-width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.25rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #000;
    text-decoration: none;
    transition: all 0.2s;
}

@media (min-width: 640px) {
    .pagination-wrapper a,
    .pagination-wrapper span {
        min-width: 2.5rem;
        height: 2.5rem;
    }
}

.pagination-wrapper a:hover {
    background-color: #f3f4f6;
}

.pagination-wrapper .current {
    background-color: #315F98;
    color: #ffffff;
    border-color: #315F98;
}

.pagination-wrapper svg {
    width: 1rem;
    height: 1rem;
}

/* Responsive Utilities */
@media (min-width: 768px) {
    .md\:text-start {
        text-align: left;
    }
}

/* Hidden Utility */
.hidden {
    display: none;
}

/* Text Center */
.text-center {
    text-align: center;
}

/* Col Span Full */
.col-span-full {
    grid-column: 1 / -1;
}

/* Leading */
.leading-7 {
    line-height: 1.75rem;
}

/* Max Width */
.max-w-\[900px\] {
    max-width: 900px;
}

.max-w-\[500px\] {
    max-width: 500px;
}

@media (min-width: 768px) {
    .md\:max-w-full {
        max-width: 100%;
    }
}

/* Relative */
.relative {
    position: relative;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}

/* Site Header */
.site-header {
    background-color: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.site-main {
    min-height: calc(100vh - 200px);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

#page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.header-nav {
    padding: 0.5rem 0.75rem;
}

@media (min-width: 768px) {
    .header-nav {
        padding: 0.5rem 2rem;
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background-color: #ffffff;
    padding: 0.8125rem 1.25rem;
    border-radius: 0.25rem;
    border: 1px solid #F4F4F5;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.06);
}

@media (min-width: 1280px) {
    .header-content {
        gap: 4.5rem;
    }
}

.header-logo {
    flex-shrink: 0;
}

.header-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    gap: 1.25rem;
}

.logo-img {
    height: auto;
    max-width: 220px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.header-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap;
    padding: 0 1rem;
    white-space: nowrap;
    min-width: 0;
}

@media (min-width: 1280px) {
    .header-links {
        gap: 4.5rem;
        padding: 0 2.5rem;
    }
}

/* Header actions (Login / Start Free Trial / Book a Demo) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.header-link-login {
    color: #000;
    font-weight: 400;
    width: 54px;
    text-align: center;
}

.header-link-button {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-link-trial {
    background-color: #000000;
    color: #ffffff !important;
    width: 140px;
    text-align: center;
}

.header-link-trial:hover {
    background-color: #1a1a1a;
    color: #ffffff !important;
}

.header-link-demo {
    background-color: #C41E3A;
    color: #ffffff !important;
    width: 140px;
    text-align: center;
}

.header-link-demo:hover {
    background-color: #a01a2e;
    color: #ffffff !important;
}

.header-link {
    color: #52525B;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.header-link:hover {
    color: #C41E3A;
}

.header-link.active {
    color: #C41E3A;
}

/* header buttons removed (not used) */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: #52525B;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .header-menu {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        padding: 1rem;
        border: 1px solid #F4F4F5;
        border-radius: 0.25rem;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
        gap: 1rem;
        z-index: 1001;
    }

    .header-menu.active {
        display: flex;
    }

    .header-links {
        display: flex;
        width: 100%;
        justify-content: center;
        gap: 1.25rem;
        padding: 0;
        flex-wrap: wrap;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .header-link-trial,
    .header-link-demo {
        width: auto;
        padding: 0.5rem 0.75rem;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .header-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.75rem;
    }

    .header-link-login {
        width: 100%;
    }

    .header-link-trial,
    .header-link-demo {
        width: 100%;
    }
}

/* Site Footer */
.site-footer {
    background-color: #000000;
    color: #F8F3F0;
    margin-top: 4rem;
}

/* Footer App Download Section */
.footer-app-section {
    background-color: #000000;
    padding: 2rem 0;
}

@media (min-width: 1024px) {
    .footer-app-section {
        padding: 6.25rem 0 2rem;
    }
}

.footer-app-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
    position: relative;
}

@media (min-width: 768px) {
    .footer-app-content {
        grid-template-columns: 3fr 4fr 3fr;
        text-align: left;
    }
}

.footer-app-left,
.footer-app-right {
    display: flex;
    justify-content: center;
    align-items: center;
    order: 2;
}

@media (min-width: 768px) {
    .footer-app-left {
        order: 1;
        justify-content: flex-end;
    }
    
    .footer-app-right {
        order: 3;
        justify-content: flex-start;
    }
}

.footer-app-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    order: 1;
    z-index: 20;
    position: relative;
}

@media (min-width: 768px) {
    .footer-app-center {
        order: 2;
    }
}

.footer-app-image {
    width: 7rem;
    height: auto;
}

@media (min-width: 640px) {
    .footer-app-image {
        width: 9rem;
    }
}

@media (min-width: 768px) {
    .footer-app-image {
        width: 179px;
    }
}

.footer-app-title {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 0.625rem;
}

@media (min-width: 1024px) {
    .footer-app-title {
        font-size: 32px;
    }
}

.footer-app-description {
    font-size: 12px;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.footer-app-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.footer-app-store-btn {
    height: auto;
    max-width: 150px;
}

.footer-container {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #0A0A0A;
    box-shadow: inset 0 -4px 20px rgba(255, 255, 255, 0.07);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2rem 0;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-left {
        align-items: flex-start;
        text-align: left;
    }
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.logo-white {
    width: 165px;
    height: 45px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: #ffffff;
    max-width: 380px;
    margin-bottom: 1.5rem;
}

.footer-demo-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: #315F98;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.25rem;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    margin-bottom: 2.5rem;
}

.footer-demo-btn:hover {
    background-color: #2a4f7f;
    color: #ffffff;
}

.footer-social {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-social {
        justify-content: flex-start;
    }
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #18181B;
    border-radius: 4px;
    color: #ffffff;
    transition: background-color 0.2s ease;
}

.social-icon:hover {
    background-color: #2a2a2d;
    color: #ffffff;
}

.footer-right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-right {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

@media (min-width: 1024px) {
    .footer-links {
        gap: 1.25rem;
    }
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #C41E3A;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.footer-privacy {
    font-size: 12px;
    color: #F8F3F0;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-privacy a {
    color: #F8F3F0;
    text-decoration: underline;
}

.footer-copyright {
    font-size: 12px;
    color: #F8F3F0;
    font-weight: 300;
}

/* Footer Award Section */
.footer-award {
    background-color: #18181B;
    border-radius: 0.25rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    gap: 0.75rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .footer-award {
        flex-direction: row;
        gap: 1.25rem;
        padding: 1.5rem;
        text-align: left;
    }
}

.footer-award-image {
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .footer-award-image {
        width: 86px;
        height: 80px;
    }
}

.footer-award-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-award-text {
        align-items: flex-start;
        text-align: left;
    }
}

.footer-award-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.25;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #C89665, #B9B9B9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 640px) {
    .footer-award-title {
        font-size: 32px;
    }
}

.footer-award-subtitle {
    color: #ffffff;
    font-size: 12px;
    margin-top: 0.25rem;
}

@media (min-width: 640px) {
    .footer-award-subtitle {
        font-size: 14px;
        margin-top: 0;
    }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth Transitions */
.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.1s ease;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}
