/* Minimatch Header Update - Full Width Layout */

/* Make header full width with dark liquid glass effect */
.nav-header {
    width: 100%;
    padding: 20px 40px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Remove container constraints */
.nav-content {
    max-width: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
}

/* Logo positioned on left */
.nav-content > a:first-child {
    flex: 0 0 auto;
    margin-right: auto;
}

/* Right-align navigation links */
.nav-links {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    margin: 0;
}

/* Regular nav links */
.nav-links > a:not(.app-store-btn) {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-links > a:not(.app-store-btn):hover,
.nav-links > a.active:not(.app-store-btn) {
    color: #fff;
}

/* App Store button at the end of nav */
.nav-links .app-store-btn {
    margin-left: 30px;
    flex: 0 0 auto;
}

/* Adjust body padding to account for fixed header */
body {
    padding-top: 84px; /* Header height + padding */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .nav-header {
        padding: 15px 20px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    body {
        padding-top: 74px;
    }
}

@media (max-width: 768px) {
    /* On mobile, hide regular nav links and keep logo + app store button */
    .nav-links > a:not(.app-store-btn) {
        display: none;
    }
    
    .nav-links {
        justify-content: flex-end;
    }
}
/* Logo visibility fix */
.nav-logo {
    height: 24px;
    display: block;
}

/* Text-based app store button styling */
.nav-links .app-store-btn:not(svg) {
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-links .app-store-btn:not(svg):hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}


/* About page hero alignment */
.page-hero {
    max-width: 800px;
    margin: 120px auto 60px auto;
    padding: 0;
    text-align: left;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: left;
}

.page-hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    text-align: left;
}

/* Ensure about content has same width and no padding */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

/* Add consistent padding to both sections */
@media (min-width: 840px) {
    .page-hero,
    .about-content {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Mobile padding */
@media (max-width: 839px) {
    .page-hero,
    .about-content {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        margin-top: 100px;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
}


/* Features page specific styles */
.feature-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 0;
}

.feature-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-text {
    flex: 1;
}

@media (max-width: 839px) {
    .feature-section {
        padding: 0 20px;
    }
    
    .feature-content {
        flex-direction: column;
        gap: 30px;
    }
}

/* Mobile padding for features */
@media (max-width: 839px) {
    .page-hero.features-hero,
    .features-list {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .page-hero.features-hero {
        margin-top: 100px;
    }
    
    .page-hero.features-hero h1 {
        font-size: 2rem;
    }
}


/* Paint Library page layout */
.paint-library {
    max-width: 1200px;
    margin: 120px auto 60px auto;
    padding: 0 20px;
}

.library-header {
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.library-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: left;
}

.library-header p {
    font-size: 1.2rem;
    color: #94a3b8;
    text-align: left;
}

/* Search and filter section */
.library-controls {
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

@media (max-width: 768px) {
    .paint-library {
        margin-top: 100px;
    }
    
    .library-header h1 {
        font-size: 2rem;
    }
}


/* Browse by Brand section centering */
.browse-title {
    text-align: center !important;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.brand-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.brand-card {
    text-align: center;
    padding: 30px 20px;
    min-width: 150px;
    transition: all 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
}

/* Center the "More brands coming soon" text */
.browse-brands p {
    text-align: center;
    color: #94a3b8;
    margin-top: 30px;
}

/* CTA section centering */
.cta-section {
    text-align: center;
}

.cta-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.cta-section p {
    text-align: center;
    margin-bottom: 30px;
}


/* Tools page layout */
.tools-hero {
    max-width: 800px;
    margin: 120px auto 60px auto;
    padding: 0;
}

.tools-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: left;
}

.tools-hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    text-align: left;
}

/* Tools grid alignment */
.tools-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Mobile padding for tools page */
@media (max-width: 839px) {
    .tools-hero,
    .tools-grid {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .tools-hero {
        margin-top: 100px;
    }
    
    .tools-hero h1 {
        font-size: 2rem;
    }
}


/* Force center alignment for Paint Matcher page brand section */
section:has(.browse-title) {
    text-align: center;
}

/* Center the entire library section that contains browse brands */
.paint-library .brand-grid {
    justify-content: center !important;
}

/* Ensure Browse by Brand title is centered */
h2.browse-title {
    text-align: center !important;
    width: 100%;
}

/* Center the "More brands coming soon" message */
.paint-library p {
    text-align: center;
}


/* Brand card logos */
.brand-card .brand-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.brand-card:hover .brand-logo {
    opacity: 1;
}

/* Update brand card layout for logos */
.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}


/* Override flexbox with grid for proper centering */
.paint-library .brand-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 200px));
    justify-content: center !important;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Remove any float or text-align that might affect alignment */
.paint-library section {
    text-align: center !important;
}

/* Ensure the section containing brands is centered */
.paint-library > * {
    margin-left: auto;
    margin-right: auto;
}


/* Force center alignment using margin auto and inline-block */
.paint-library .brand-grid {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

.paint-library .brand-grid .brand-card {
    display: inline-block !important;
    vertical-align: top;
    width: 150px;
    margin: 10px;
}


/* Minimatch Blog Styles */
.blog-intro {
    max-width: 800px;
    margin: 0 auto 60px auto;
    text-align: center;
    font-size: 1.2rem;
    color: #94a3b8;
}

main h1 {
    text-align: center;
    font-size: 3rem;
    margin: 120px 0 20px 0;
}

/* Override Thrux dark theme for Minimatch light theme */
.blog-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-card {
    background: #111;
    border: 1px solid #222;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: #666;
    transform: translateY(-4px);
}

.blog-card h2 a {
    color: #fff;
}

.blog-card p {
    color: #94a3b8;
}

.blog-card time {
    color: #6b7280;
}

/* Fix footer */
footer {
    background: #000;
    color: #6b7280;
    text-align: center;
    padding: 40px 20px;
    margin-top: 100px;
}

@media (max-width: 768px) {
    main h1 {
        font-size: 2rem;
        margin-top: 100px;
    }
}


/* Fix Minimatch blog layout */
.blog-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.blog-card {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    padding: 25px !important;
    height: auto !important;
    min-height: 200px !important;
    display: flex !important;
    flex-direction: column !important;
}

.blog-card h2 {
    font-size: 1.3rem !important;
    line-height: 1.4 !important;
    margin-bottom: 15px !important;
}

.blog-card p {
    flex-grow: 1 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

/* Remove any width constraints */
.content-wrapper,
main {
    max-width: 100% !important;
}

/* Fix blog intro spacing */
.blog-intro {
    margin-bottom: 40px !important;
}

