/*
Theme Name: SaaS Inspections Pro
Theme URI: https://saasinspections.com
Author: SaaS Inspections Team
Description: A professional WordPress theme for SaaS inspection and quality management platforms
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ssi-theme
*/

/* Critical WordPress Overrides */
html,
body,
#page,
#content,
.site,
.site-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    float: none !important;
}

#page.site {
    display: block;
    width: 100%;
}

#content.site-content {
    display: block;
    width: 100%;
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1A202C;
    line-height: 1.6;
    background: #F7FAFC;
    width: 100%;
    overflow-x: hidden;
}

/* Force all sections to display properly */
section {
    display: block !important;
    width: 100% !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
}

/* Customizer Preview Fixes */
.customize-support section,
.customize-support .ssi-hero,
.customize-support .ssi-intro,
.customize-support .ssi-images,
.customize-support .ssi-features,
.customize-support .ssi-posts,
.customize-support .ssi-contact,
.customize-support .ssi-footer {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    float: none !important;
}

/* WordPress Admin Bar Fix */
.admin-bar .ssi-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .ssi-header {
        top: 46px;
    }
}

/* Container */
.ssi-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.ssi-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 1.25rem 0;
}

.ssi-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ssi-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0A2540;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.ssi-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0066CC, #00D4FF);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
}

/* Navigation */
.ssi-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.ssi-nav a {
    color: #1A202C;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.ssi-nav a:hover,
.ssi-nav a.active {
    color: #0066CC;
}

/* Mobile Menu */
.ssi-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.ssi-hamburger span {
    width: 26px;
    height: 2px;
    background: #1A202C;
    transition: 0.3s;
    border-radius: 2px;
}

.ssi-mobile-menu {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 998;
}

.admin-bar .ssi-mobile-menu {
    top: 108px;
}

@media screen and (max-width: 782px) {
    .admin-bar .ssi-mobile-menu {
        top: 122px;
    }
}

.ssi-mobile-menu.active {
    display: block;
}

.ssi-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ssi-mobile-nav a {
    padding: 1rem;
    color: #1A202C;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
    font-weight: 500;
}

.ssi-mobile-nav a:hover {
    background: #F7FAFC;
}

/* Hero Section */
.ssi-hero {
    background: linear-gradient(135deg, #05192D 0%, #0A2540 100%);
    color: #fff;
    padding: 6rem 0;
    text-align: center;
}

.ssi-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.ssi-hero-subtitle {
    font-size: 1.375rem;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.ssi-hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ssi-btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.ssi-btn-primary {
    background: #00D4FF;
    color: #05192D;
}

.ssi-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,212,255,0.3);
}

.ssi-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.ssi-btn-secondary:hover {
    background: #fff;
    color: #0A2540;
}

/* Intro Section */
.ssi-intro {
    padding: 5rem 0;
    background: #fff;
}

.ssi-intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ssi-intro-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0A2540;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.ssi-intro-text {
    font-size: 1.125rem;
    color: #718096;
    line-height: 1.8;
}

.ssi-intro-image {
    width: 100%;
    height: 450px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0066CC, #00D4FF);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0,102,204,0.15);
}

/* Images Section */
.ssi-images {
    padding: 5rem 0;
    background: #F7FAFC;
}

.ssi-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.ssi-section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #0A2540;
    margin-bottom: 1rem;
}

.ssi-section-subtitle {
    font-size: 1.25rem;
    color: #718096;
}

.ssi-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ssi-image-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ssi-image-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.ssi-image-card-img {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #0066CC, #00D4FF);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ssi-image-card-content {
    padding: 2rem;
}

.ssi-image-card-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #05192D;
    margin-bottom: 0.75rem;
}

.ssi-image-card-text {
    color: #718096;
    line-height: 1.6;
}

/* Features Section */
.ssi-features {
    padding: 5rem 0;
    background: #fff;
}

.ssi-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.ssi-feature-card {
    background: #F7FAFC;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.ssi-feature-card:hover {
    border-color: #0066CC;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,102,204,0.12);
}

.ssi-feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #0066CC, #00D4FF);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.ssi-feature-icon svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.ssi-feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #05192D;
}

.ssi-feature-text {
    color: #718096;
    line-height: 1.6;
}

/* Posts Section */
.ssi-posts {
    padding: 5rem 0;
    background: #F7FAFC;
}

.ssi-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.ssi-post-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
}

.ssi-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.ssi-post-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #0066CC, #00D4FF);
}

.ssi-post-content {
    padding: 2rem;
}

.ssi-post-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #05192D;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.ssi-post-excerpt {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ssi-post-meta {
    font-size: 0.875rem;
    color: #718096;
}

/* Contact Section */
.ssi-contact {
    padding: 5rem 0;
    background: #0A2540;
    color: #fff;
    text-align: center;
}

.ssi-contact-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.ssi-contact-text {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ssi-contact-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Single Post */
.ssi-single-post {
    max-width: 850px;
    margin: 4rem auto;
    background: #fff;
    padding: 4rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.ssi-single-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #05192D;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.ssi-single-meta {
    color: #718096;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #E2E8F0;
}

.ssi-single-featured {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 2.5rem;
}

.ssi-single-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1A202C;
}

.ssi-single-content p {
    margin-bottom: 1.5rem;
}

.ssi-single-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem;
    color: #05192D;
}

.ssi-single-content h3 {
    font-size: 1.625rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: #05192D;
}

.ssi-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

/* Archive */
.ssi-archive {
    padding: 4rem 0;
}

.ssi-archive-header {
    margin-bottom: 3rem;
}

.ssi-archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0A2540;
}

/* Pagination */
.ssi-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 4rem 0;
}

.ssi-pagination a,
.ssi-pagination span {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    color: #1A202C;
    border: 1px solid #E2E8F0;
    transition: all 0.3s;
}

.ssi-pagination a:hover,
.ssi-pagination span.current {
    background: #0066CC;
    color: #fff;
    border-color: #0066CC;
}

/* Footer */
.ssi-footer {
    background: #05192D;
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 2rem;
}

.ssi-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.ssi-footer-section h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.ssi-footer-section p,
.ssi-footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    line-height: 1.8;
}

.ssi-footer-section a:hover {
    color: #00D4FF;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .ssi-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ssi-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ssi-nav {
        display: none;
    }
    
    .ssi-hamburger {
        display: flex;
    }
    
    .ssi-hero-title {
        font-size: 2.25rem;
    }
    
    .ssi-hero-subtitle {
        font-size: 1.125rem;
    }
    
    .ssi-hero-cta {
        flex-direction: column;
    }
    
    .ssi-intro-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .ssi-intro-text-wrap {
        text-align: center;
    }
    
    .ssi-intro-image {
        height: 350px;
    }
    
    .ssi-features-grid {
        grid-template-columns: 1fr;
    }
    
    .ssi-images-grid {
        grid-template-columns: 1fr;
    }
    
    .ssi-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .ssi-single-post {
        padding: 2rem;
        margin: 2rem 0;
    }
    
    .ssi-single-title {
        font-size: 2rem;
    }
    
    .ssi-section-title {
        font-size: 2rem;
    }
    
    .ssi-contact-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .ssi-container {
        padding: 0 15px;
    }
    
    .ssi-hero {
        padding: 4rem 0;
    }
    
    .ssi-hero-title {
        font-size: 1.875rem;
    }
}
