/* Bulma CSS Framework */
@import "https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css";

/* Custom CSS Variables */
:root {
    --primary-color: #ffdd57;
    --secondary-color: #00d1b2;
    --dark-color: #363636;
    --light-color: #f5f5f5;
    --warning-color: #ff3860;
    --success-color: #48c774;
    --info-color: #3298dc;
}

/* General Styles */
body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 52px; /* 헤더 높이만큼 상단 여백 추가 */
    background-color: #f9f9f9;
}

/* Main Content Area */
main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 2rem;
}

/* Navbar Customization */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar.is-fixed-top {
    z-index: 40;
}

.navbar-item img {
    max-height: 2.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Security Badges */
.security-badges {
    position: sticky;
    top: 52px;
    z-index: 30;
}

/* Section Spacing */
section {
    padding-top: 3rem;
    padding-bottom: 3rem;
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
    clear: both;
}

/* Contact Section Specific Styles */
.contact-section {
    padding-bottom: 4rem;
    margin-bottom: 0;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.contact-section .card {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-section::after {
    content: "";
    display: block;
    height: 2rem;
    clear: both;
}

/* 첫 번째 섹션에 추가 여백 */
main > section:first-child {
    padding-top: 4rem;
}

@media screen and (min-width: 1024px) {
    section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* Card Styles */
.card {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Custom Button Styles */
.button {
    transition: all 0.3s ease;
    font-weight: 600;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.button.is-warning {
    background-color: var(--primary-color);
    color: rgba(0,0,0,.7);
}

.button.is-warning:hover {
    background-color: #ffd83d;
}

/* Tag Styles */
.tag {
    font-weight: 600;
}

/* Progress Bar */
.progress {
    height: 1.25rem;
}

/* Table Customization */
.table {
    background-color: transparent;
}

.table td, .table th {
    vertical-align: middle;
}

/* Footer */
.footer {
    margin-top: 2rem;
    padding: 3rem 1.5rem 2rem;
    position: relative;
    z-index: 10;
    background-color: #363636;
    color: #f5f5f5;
    border-top: 3px solid #ffdd57;
    clear: both;
    width: 100%;
}

/* Fix for footer in contact page */
.contact-section + .footer {
    margin-top: 4rem;
}

/* Box Shadow Utilities */
.has-shadow-sm {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.has-shadow {
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

.has-shadow-lg {
    box-shadow: 0 8px 16px rgba(0,0,0,.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive Utilities */
@media screen and (max-width: 768px) {
    .is-hidden-mobile {
        display: none !important;
    }
    
    .reverse-columns {
        flex-direction: column-reverse;
        display: flex;
    }
}

@media screen and (min-width: 769px) {
    .is-hidden-tablet {
        display: none !important;
    }
}

/* Loading Spinner */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sticky Elements */
.is-sticky {
    position: sticky;
    top: 120px;
}

/* Custom Notification Styles */
.notification {
    border-radius: 10px;
}

.notification.is-info.is-light {
    background-color: rgba(50, 152, 220, 0.1);
}

.notification.is-warning.is-light {
    background-color: rgba(255, 221, 87, 0.1);
}

/* Image Styles */
.image img {
    border-radius: 5px;
}

/* Breadcrumb Customization */
.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb.has-arrow-separator li + li::before {
    content: "→";
    color: #b5b5b5;
}

/* Message Styles */
.message {
    border-radius: 10px;
}

.message-header {
    border-radius: 10px 10px 0 0;
}

/* Icon Spacing */
.icon-text > .icon:first-child:not(:last-child) {
    margin-right: 0.5em;
}

/* Mobile Menu Toggle */
.navbar-burger {
    height: 52px;
}

/* Utility Classes */
.is-fullheight {
    min-height: 100vh;
}

.has-text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.is-rounded-lg {
    border-radius: 15px;
}

/* SEO Optimized Image Loading */
img {
    max-width: 100%;
    height: auto;
}

img[loading="lazy"] {
    background-color: #f5f5f5;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .button,
    .is-hidden-print {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}
