/* 헤더 스타일은 linear-header.css에서 처리됨 */

/* 로고 컨테이너 레이아웃 개선 */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-2px);
}

/* 로고 스타일 개선 */
.logo {
    width: 90px;
    height: 90px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(5deg) scale(1.05);
}

.logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 사이트 제목 스타일 개선 */
.site-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.title-brand {
    font-weight: 700;
    color: var(--iceberg-blue);
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
}

.title-brand::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--iceberg-blue), var(--aqua-accent));
    bottom: -2px;
    left: 0;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.logo-container:hover .title-brand::after {
    width: 100%;
}

.site-title h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 5px 0 10px;
    color: var(--frost-white);
    letter-spacing: -1px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.site-title p {
    font-size: 1.1rem;
    color: var(--penguin-navy);
    font-weight: 600;
    background-color: var(--iceberg-blue);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 펭귄 장식 */
.penguin-decoration {
    position: absolute;
    z-index: 0;
    opacity: 0.12;
    transform-origin: center center;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(29, 47, 78, 0.1));
}

.penguin-decoration img {
    width: 100%;
    height: 100%;
}

/* 메인 콘텐츠 레이아웃 */
.main-content {
    padding: 40px 0 60px;
    position: relative;
    background: linear-gradient(180deg, #f8fafc 0%, #f0f7fa 100%);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 푸터 스타일 (Linear Footer가 아닌 경우에만 적용) */
footer:not(.linear-footer) {
    background-color: var(--penguin-navy);
    color: var(--frost-white);
    padding: 40px 0 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 -4px 20px rgba(29, 47, 78, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--frost-white);
}

.footer-logo img {
    max-width: 30px;
    max-height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.footer-nav {
    margin-top: 20px;
}

.footer-nav a {
    color: var(--iceberg-blue);
    margin: 0 15px;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: all 0.3s;
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--aqua-accent);
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--frost-white);
}

.footer-nav a:hover::after {
    width: 100%;
}

.copyright {
    margin-top: 25px;
    font-size: 0.85rem;
    opacity: 0.7;
    color: var(--iceberg-blue);
}

/* 반응형 스타일 */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    /* header 스타일은 linear-header.css에서 처리됨 */

    .logo {
        width: 75px;
        height: 75px;
        margin-right: 15px;
    }

    .site-title h1 {
        font-size: 2rem;
    }

    .title-brand {
        font-size: 1.3rem;
    }

    .site-title p {
        font-size: 0.9rem;
        padding: 4px 12px;
    }

    .main-content {
        padding: 30px 0 40px;
        width: 100%;
        max-width: 100%;
    }

    .container {
        max-width: 100%;
        padding: 0 16px;
        width: 100%;
        margin: 0 auto;
        /* Explicitly ensure centering */
        box-sizing: border-box;
    }

    footer {
        padding: 30px 0 20px;
    }

    .footer-nav a {
        margin: 0 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 12px;
        /* 모바일 패딩 축소 */
        width: 100%;
        box-sizing: border-box;
    }

    .main-content {
        padding: 24px 0 32px;
        width: 100%;
        max-width: 100%;
    }

    /* header 스타일은 linear-header.css에서 처리됨 */

    .logo-container {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-right: 0;
        margin-bottom: 15px;
        width: 70px;
        height: 70px;
    }

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

    .site-title h1 {
        font-size: 1.8rem;
    }

    .title-brand {
        font-size: 1.2rem;
    }

    .site-title p {
        font-size: 0.85rem;
    }

    .footer-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .footer-nav a {
        margin: 5px;
    }
}