/**
 * 사용자 페이지 푸터 스타일
 */

/* Contact us 섹션 */
.contact-section {
    background-color: var(--color-dark-bg);
    color: #e5e5e5;
    padding: 4rem 0 8rem;
}

.contact-section-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.4;
    margin: 0 0 3rem;
    color: #fff;
}

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

.contact-card {
    background-color: var(--color-dark-surface);
    border: 1px solid rgba(0, 212, 255, 0.15);
    padding: 2rem;
    border-radius: var(--btn-radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--shadow-md);
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15), var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.4;
    margin: 0;
    color: #fff;
}

.card-arrow {
    font-size: 1.8rem;
    margin-top: -20px;
    color: var(--color-accent);
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-card:hover .card-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.card-link {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1.5rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.contact-card:hover .card-link {
    color: rgba(255, 255, 255, 0.9);
}

.card-button {
    display: inline-block;
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gradient);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-button:hover {
    color: var(--color-accent-secondary);
}

.card-button:hover::after {
    width: 100%;
}

/* 디바이스별 반응형 디자인 */
/* 태블릿 가로 (1024px ~ 1199px) */
@media (max-width: 1199px) {
    .contact-section-inner,
    .user-footer-inner {
        padding: 0 1.5rem;
    }
    
    .contact-cards {
        gap: 1.75rem;
    }
}

/* 태블릿 세로 (768px ~ 1023px) */
@media (max-width: 1023px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .contact-section {
        padding: 3.5rem 0 2.5rem;
    }
    
    .contact-title {
        font-size: 2rem;
        letter-spacing: -0.02em;
        line-height: 1.4;
    }
    
    .footer-content {
        gap: 3rem;
    }
}

/* 모바일 중형 (480px ~ 767px) */
@media (max-width: 767px) {
    .contact-section {
        padding: 2.5rem 0 1.5rem;
    }
    
    .contact-section-inner {
        padding: 0 1rem;
    }
    
    .contact-title {
        display: none; /* 모바일에서 숨김 */
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .contact-card {
        padding: 1.5rem;
        border-radius: 8px;
    }
    
    .card-header {
        margin-bottom: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
        letter-spacing: -0.02em;
        line-height: 1.4;
    }
    
    .card-link {
        font-size: 0.875rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .card-button {
        font-size: 0.875rem;
    }
    
    .user-footer {
        padding: 2rem 0 1.25rem;
        margin-top: 40px;
    }
    
    /* 마이페이지에서 tab-menu가 푸터를 가리지 않도록 하단 여백 추가 */
    body.menu-mypage .user-footer {
        padding-bottom: calc(1.25rem + 72px);
    }
    
    /* 마이페이지에서 contact-section도 tab-menu에 가려지지 않도록 */
    body.menu-mypage .contact-section {
        padding-bottom: calc(1.5rem + 72px);
    }
    
    /* iOS Safe Area 지원 */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        body.menu-mypage .user-footer {
            padding-bottom: calc(1.25rem + 72px + env(safe-area-inset-bottom));
        }
        
        body.menu-mypage .contact-section {
            padding-bottom: calc(1.5rem + 72px + env(safe-area-inset-bottom));
        }
    }
    
    .user-footer-inner {
        padding: 0 1rem;
    }
    
    .footer-title {
        margin-bottom: 1rem;
    }
    
    .footer-title h2 {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .footer-title::after {
        margin-top: 0.75rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .footer-left {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .footer-right {
        flex: 1;
        max-width: 100%;
        width: 100%;
        text-align: left;
    }
    
    .footer-logo {
        margin-bottom: 1rem;
    }
    
    .footer-logo img {
        max-width: 80px;
    }
    
    .logo-text {
        font-size: 1.75rem;
        line-height: 1;
    }
    
    .footer-social {
        display: none; /* 모바일에서 숨김 */
    }
    
    .footer-info {
        margin-bottom: 1rem;
    }
    
    .footer-info p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 0.35rem;
    }
    
    .footer-links {
        margin-top: 1rem;
        padding-top: 1rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
    
    .footer-links .separator {
        display: none;
    }
    
    .footer-copyright {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .footer-copyright p {
        font-size: 0.75rem;
        line-height: 1.5;
    }
}

/* 모바일 소형 (320px ~ 479px) */
@media (max-width: 479px) {
    .contact-section {
        padding: 2rem 0 1.25rem;
    }
    
    .contact-section-inner {
        padding: 0 0.75rem;
    }
    
    .contact-title {
        display: none; /* 모바일에서 숨김 */
    }
    
    .contact-cards {
        gap: 1rem;
    }
    
    .contact-card {
        padding: 1rem;
    }
    
    .card-header {
        margin-bottom: 0.875rem;
    }
    
    .card-title {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .card-link {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 0.875rem;
    }
    
    .card-button {
        font-size: 0.8rem;
    }
    
    .user-footer {
        padding: 1.5rem 0 1rem;
        margin-top: 30px;
    }
    
    /* 마이페이지에서 tab-menu가 푸터를 가리지 않도록 하단 여백 추가 */
    body.menu-mypage .user-footer {
        padding-bottom: calc(1rem + 68px);
    }
    
    /* 마이페이지에서 contact-section도 tab-menu에 가려지지 않도록 */
    body.menu-mypage .contact-section {
        padding-bottom: calc(1.25rem + 68px);
    }
    
    /* iOS Safe Area 지원 */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        body.menu-mypage .user-footer {
            padding-bottom: calc(1rem + 68px + env(safe-area-inset-bottom));
        }
        
        body.menu-mypage .contact-section {
            padding-bottom: calc(1.25rem + 68px + env(safe-area-inset-bottom));
        }
    }
    
    .user-footer-inner {
        padding: 0 0.75rem;
    }
    
    .footer-title {
        margin-bottom: 0.875rem;
    }
    
    .footer-title h2 {
        font-size: 0.95rem;
        line-height: 1.3;
        margin-bottom: 0.4rem;
    }
    
    .footer-title::after {
        margin-top: 0.625rem;
    }
    
    .footer-content {
        gap: 0.5rem !important;
        margin-top: 0.875rem;
    }
    
    .footer-logo {
        margin-bottom: 0.875rem;
    }
    
    .footer-logo img {
        max-width: 60px;
    }
    
    .logo-text {
        font-size: 1.5rem;
        line-height: 1;
    }
    
    .footer-social {
        display: none; /* 모바일에서 숨김 */
    }
    
    .footer-info {
        margin-bottom: 0.875rem;
    }
    
    .footer-info p {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 0.3rem;
    }
    
    .footer-links {
        margin-top: 0.875rem;
        padding-top: 0.875rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }
    
    .footer-links a {
        font-size: 0.75rem;
    }
    
    .footer-links .separator {
        display: none;
    }
    
    .footer-copyright {
        margin-top: 0.875rem;
        padding-top: 0.875rem;
    }
    
    .footer-copyright p {
        font-size: 0.7rem;
        line-height: 1.4;
    }
}

/* 푸터 */
.user-footer {
    margin-top: 100px;
    background-color: #1a1a1a;
    color: #e5e5e5;
    padding: 3rem 0 2rem;
    margin-top: auto;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
}

.user-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 푸터 타이틀 */
.footer-title {
    text-align: left;
    margin-bottom: 2rem;
}

.footer-title h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0 0 1rem;
    color: #e5e5e5;
    letter-spacing: -0.01em;
}

.footer-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 0.1px;
    background-color: rgba(229, 229, 229, 0.3);
    margin-top: 1rem;
}

/* 푸터 컨텐츠 */
.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-top: 2rem;
}


/* 왼쪽 컬럼 (4/12 = 33.33%) */
.footer-left {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

/* 모바일에서 footer-left 너비 제한 제거 */
@media (max-width: 767px) {
    .footer-left {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo img {
    height: auto;
    width: auto;
    max-width: 100px;
    display: block;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: #e5e5e5;
    display: block;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

.footer-social {
    margin-bottom: 2rem;
}

.social-link {
    display: block;
    color: #e5e5e5;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 0.7;
}

.social-link .arrow {
    display: inline-block;
    margin-left: 0.25rem;
    font-size: 0.85rem;
    vertical-align: middle;
}

.footer-copyright {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(229, 229, 229, 0.1);
}

.footer-copyright p {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}

.footer-copyright a {
    color: #999;
    text-decoration: none;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-copyright a:hover {
    opacity: 0.8;
    color: #e5e5e5;
}

/* 오른쪽 컬럼 (8/12 = 66.67%) */
.footer-right {
    flex: 0 0 66.667%;
    max-width: 66.667%;
    text-align: left;
}

/* 모바일에서 footer-right 너비 제한 제거 */
@media (max-width: 767px) {
    .footer-right {
        flex: 1;
        max-width: 100%;
        width: 100%;
    }
}

.footer-info {
    margin-bottom: 2rem;
}

.footer-info p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 0;
    color: #e5e5e5;
}

.footer-links {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(229, 229, 229, 0.1);
}

.footer-links a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-links .separator {
    margin: 0 0.75rem;
    color: rgba(229, 229, 229, 0.3);
}

/* 태블릿 세로 (768px ~ 1023px) - 푸터 추가 최적화 */
@media (max-width: 1023px) and (min-width: 768px) {
    .footer-content {
        gap: 3rem;
    }
    
    .footer-left {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .footer-logo img {
        max-width: 90px;
    }
    
    .footer-right {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: left;
    }
}

/* 모달 스타일 */
.policy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.policy-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10001;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.policy-modal.active .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background-color: #fff;
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111;
    margin: 0;
    letter-spacing: -0.02em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: #111;
}

.modal-close:focus {
    outline: 2px solid #1a1f3a;
    outline-offset: 2px;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* iOS 부드러운 스크롤 */
    overscroll-behavior: contain; /* 스크롤 체이닝 방지 */
    touch-action: pan-y; /* 세로 터치 스크롤 허용 */
    padding: 2rem;
    color: #333;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* 스크롤바 스타일링 */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.policy-meta {
    background-color: #f9fafb;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #1a1f3a;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.policy-meta p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.policy-content {
    line-height: 1.8;
}

.policy-content section {
    margin-bottom: 2.5rem;
}

.policy-content section:last-child {
    margin-bottom: 0;
}

.policy-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    letter-spacing: -0.01em;
}

.policy-content p {
    font-size: 1rem;
    color: #444;
    margin: 0 0 1rem;
    line-height: 1.8;
}

.policy-content ol,
.policy-content ul {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
    color: #444;
}

.policy-content ol li,
.policy-content ul li {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.policy-content ol {
    list-style-type: decimal;
}

.policy-content ul {
    list-style-type: disc;
}

.policy-content ul ul {
    list-style-type: circle;
    margin-top: 0.5rem;
}

.policy-content strong {
    font-weight: 600;
    color: #111;
}

.contact-info {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.contact-info p {
    font-weight: 600;
    color: #111;
    margin: 0 0 0.75rem;
}

.contact-info p:first-child {
    margin-top: 0;
}

.contact-info ul {
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
}

.contact-info ul:last-child {
    margin-bottom: 0;
}

.contact-info li {
    color: #555;
    margin-bottom: 0.25rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
        border-radius: 8px;
    }
    
    .modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .policy-content h3 {
        font-size: 1.1rem;
    }
    
    .policy-content p,
    .policy-content ol li,
    .policy-content ul li {
        font-size: 0.95rem;
    }
    
    .policy-meta {
        padding: 0.875rem 1.25rem;
    }
    
    .policy-meta p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .modal-container {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal-header {
        padding: 1rem 1.25rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
}

/* 제휴문의 폼 스타일 */
.partnership-form-wrapper {
    max-width: 100%;
}

.form-description {
    font-size: 1rem;
    color: #555;
    margin: 0 0 2rem;
    line-height: 1.6;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #1a1f3a;
}

.partnership-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
    letter-spacing: -0.01em;
}

.form-group label .required {
    color: #ef4444;
    margin-left: 0.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #111;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a1f3a;
    box-shadow: 0 0 0 3px rgba(26, 31, 58, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.btn-cancel,
.btn-submit {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    letter-spacing: -0.01em;
}

.btn-cancel {
    background-color: #f3f4f6;
    color: #374151;
}

.btn-cancel:hover {
    background-color: #e5e7eb;
}

.btn-submit {
    background-color: #1a1f3a;
    color: #fff;
}

.btn-submit:hover {
    background-color: #14182d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 31, 58, 0.2);
}

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

/* 반응형 디자인 */
@media (max-width: 768px) {
    .form-description {
        font-size: 0.95rem;
        padding: 0.875rem;
    }
    
    .partnership-form {
        gap: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .form-description {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .partnership-form {
        gap: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
}

