/* ===== BASE STYLES ===== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
}

/* ===== RESPONSIVE CONTAINER ===== */
.responsive-container {
    max-width: 1279px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Full width on small screens */
@media (max-width: 719px) {
    .responsive-container {
        max-width: none;
        padding: 0 1rem;
    }
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (min-width: 390px) {
    .responsive-container {
        padding: 0 1.25rem;
    }
}

@media (min-width: 720px) {
    .responsive-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1280px) {
    .responsive-container {
        padding: 0 2rem;
    }
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 719px) {
    /* Force single column layout */
    .grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Remove gap on mobile */
    .gap-8 {
        gap: 1rem !important;
    }
    
    /* Force full width for all containers */
    .max-w-md,
    .max-w-lg,
    .max-w-xl {
    max-width: 100% !important;
    min-width: 100% !important;
}

/* Force all form containers to single column */
.search-box .flex,
.status-check-box .flex {
    flex-direction: column !important;
}

/* Force cards to full width */
.search-box,
.status-check-box {
    width: 100% !important;
    max-width: none !important;
    min-width: 100% !important;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== HERO SECTION ===== */
.hero-video {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(10, 20, 10, 0.3);
    color: white;
    text-align: center;
    padding: 1rem;
}

.hero-title {
    font-weight: bold;
    margin-bottom: 0.4rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    white-space: nowrap;
    /* Responsive font sizes */
    font-size: 1.3rem; /* xs: 360px */
}

.hero-subtitle {
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
    white-space: nowrap;
    /* Responsive font sizes */
    font-size: 0.875rem; /* xs: 360px */
}

/* Hero responsive typography */
@media (min-width: 390px) {
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 1rem; }
}

@media (min-width: 720px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.125rem; }
}

@media (min-width: 1280px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.25rem; }
}

/* ===== CARD COMPONENTS ===== */
.search-box,
.status-check-box {
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.search-box:hover,
.status-check-box:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Responsive padding for cards */
@media (min-width: 390px) {
    .search-box, .status-check-box { padding: 1.25rem; }
    .feature-card { padding: 0.875rem; }
}

@media (min-width: 720px) {
    .search-box, .status-check-box { padding: 1.5rem; }
    .feature-card { padding: 1rem; }
}

@media (min-width: 1280px) {
    .search-box, .status-check-box { padding: 2rem; }
    .feature-card { padding: 1rem; }
}

/* ===== FORM ELEMENTS ===== */
.input-focus {
    transition: all 0.2s ease;
}

.input-focus:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ===== RESPONSIVE GRID ===== */
@media (max-width: 719px) {
    .feature-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

@media (min-width: 720px) and (max-width: 1023px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== SUGGESTION BOX ===== */
#org-suggestions {
    max-height: 200px;
    overflow-y: auto;
    z-index: 50;
}

#org-suggestions li {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
}

#org-suggestions li:hover {
    background-color: #f8fafc;
}

#org-suggestions li:last-child {
    border-bottom: none;
}

/* Hero animation with delay (custom for service site) */
.hero-line { opacity: 0; white-space: nowrap; }
.hero-content.start .hero-line { animation: fadeInUp 0.5s ease-out forwards; }
.hero-content.start .hero-line.line1 { animation-delay: 0s; }
.hero-content.start .hero-line.line2 { animation-delay: 0.5s; }
.hero-content.start .hero-line.line3 { animation-delay: 1s; }

