/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 2rem;
    display: flex;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.25) !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-1px) !important;
    transition: all 0.3s ease !important;
}

.nav-link.active:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* 강제 스타일 적용을 위한 ID 기반 선택자 */
#mypage-link.active {
    background: rgba(255, 255, 255, 0.25) !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-1px) !important;
}

.nav-login {
    margin-left: 1rem;
}

.nav-user {
    margin-left: 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 150px;
}

.user-company {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
    opacity: 0.9;
}

.user-points {
    color: #feca57;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 120px;
    white-space: nowrap;
    text-align: right;
    justify-content: flex-end;
}

.user-points span {
    color: #fff;
    font-weight: 700;
}

.charge-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    margin-left: 8px;
}

.charge-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669, #047857);
}

.charge-icon {
    width: 14px;
    height: 14px;
    opacity: 0.9;
}

.charge-btn:hover .charge-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* 카카오톡 버튼 */
.kakao-btn {
    background: #FEE500 !important;
    background-color: #FEE500 !important;
    color: #3C1E1E !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 8px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(254, 229, 0, 0.3);
    margin-left: 6px;
}

.kakao-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254, 229, 0, 0.5);
    background: #FFD700 !important;
    background-color: #FFD700 !important;
}

.kakao-btn i {
    font-size: 16px;
    font-weight: 700;
}

/* 애니메이션 효과 */
@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.user-info-card {
    transition: all 0.3s ease;
}

.user-info-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.15);
}

.nav-login-btn {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.nav-logout-btn {
    background: linear-gradient(45deg, #7f8c8d, #95a5a6);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.nav-logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(127, 140, 141, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}







.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

.btn-full {
    width: 100%;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Customer Center Section */
.customer-center {
    background: #f8f9fa;
}

.customer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.contact-item p {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.contact-item span {
    color: #666;
    font-size: 0.9rem;
}

/* Notice Section */
.notice {
    background: white;
}

.notice-list {
    max-width: 800px;
    margin: 0 auto;
}

.notice-item {
    padding: 25px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.notice-item:hover {
    background-color: #f8f9fa;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-date {
    color: #999;
    font-size: 0.9rem;
}

.notice-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 8px 0;
    color: #333;
}

.notice-item p {
    color: #666;
    line-height: 1.5;
}

/* Contact Section */
.contact {
    background: #f8f9fa;
}

.company-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.info-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.info-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.info-item p {
    color: #666;
    font-weight: 500;
}

/* Footer */
#footer {
    background: #262a2d;
    color: white;
    padding: 24px 0;
    clear: both;
}

.footer_info {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer_inner {
    width: 100%;
}

.footer_content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    min-height: 52px;
}

.footer_left {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.footer_logo {
    width: 45px;
    height: auto;
    flex-shrink: 0;
    margin-top: 5px;
}

.footer_copy {
    font-size: 12px;
    color: #999999;
    line-height: 1.5;
}

.company_name {
    margin-bottom: 8px;
}

.footer_copy .companyname {
    color: #0daeed;
    font-weight: bold;
    font-size: 14px;
}

.company_details,
.contact_details {
    margin-bottom: 6px;
}

.company_details span,
.contact_details span {
    display: inline-block;
    margin-right: 8px;
}

.company_details span:after,
.contact_details span:after {
    content: " | ";
    color: #666;
    margin-left: 8px;
}

.company_details span:last-child:after,
.contact_details span:last-child:after {
    content: "";
}

.footer_copy .copyright {
    color: #777777;
    font-size: 11px;
    margin-top: 10px;
    display: block;
}

.footer_right {
    flex-shrink: 0;
    margin-top: 10px;
}

.footer_menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}

.footer_menu li {
    padding: 0 12px;
    position: relative;
}

.footer_menu li:not(:first-child):before {
    content: "|";
    position: absolute;
    left: 0;
    color: #666;
}

.footer_menu li a {
    color: #777777;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer_menu li.private a {
    color: #0daeed;
    font-weight: bold;
}

.footer_menu li a:hover {
    color: white;
}

.user_info, .login_area {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.user_info span {
    color: #ccc;
}

.user_info a, .login_area a {
    color: #0daeed;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.user_info a:hover, .login_area a:hover {
    opacity: 0.8;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

/* Login Modal Styles moved to login/css/login.css */

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #333;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

/* Login Form Styles moved to login/css/login.css */

/* Popup */
.popup {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
    background-color: white;
    margin: 10% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.popup-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-body {
    padding: 20px;
}

.popup-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 10px 0;
    }
    
    .nav-login {
        margin: 15px 0;
    }
    
    .nav-user {
        margin: 15px 0;
        flex-direction: column;
        gap: 10px;
    }
    
    .user-info-card {
        padding: 10px 15px;
        min-width: 200px;
        text-align: center;
    }
    
    .charge-btn {
        font-size: 0.7rem;
        padding: 6px 10px;
        margin-left: 0;
        margin-top: 8px;
        width: 100px;
    }

    .kakao-btn {
        font-size: 0.75rem;
        padding: 8px 16px;
        margin-left: 0;
        margin-top: 8px;
        width: auto;
        max-width: 250px;
    }

    .nav-login-btn {
        width: 200px;
    }
    
    .nav-logout-btn {
        width: 120px;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .customer-info,
    .company-info {
        grid-template-columns: 1fr;
    }

    /* Footer Responsive - Tablet */
    .footer_content {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .footer_left {
        width: 100%;
        justify-content: flex-start;
    }
    
    .footer_right {
        width: 100%;
        margin-top: 0;
    }
    
    .footer_menu {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .footer_menu li {
        padding: 0;
    }
    
    .footer_menu li:not(:first-child):before {
        display: none;
    }
    
    .company_details span,
    .contact_details span {
        display: block;
        margin-bottom: 3px;
        margin-right: 0;
    }
    
    .company_details span:after,
    .contact_details span:after {
        content: "";
    }
    
    .user_info, .login_area {
        flex-direction: column;
        gap: 10px;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .modal-body,
    .modal-header {
        padding: 20px;
    }
    
    /* Footer Responsive - Mobile */
    #footer {
        padding: 20px 0;
    }
    
    .footer_content {
        gap: 15px;
    }
    
    .footer_left {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .footer_logo {
        width: 35px;
        margin-top: 0;
    }
    
    .footer_copy {
        font-size: 11px;
        line-height: 1.4;
    }
    
    .footer_copy .companyname {
        font-size: 13px;
        display: block;
        margin-bottom: 5px;
    }
    
    .company_name {
        margin-bottom: 5px;
    }
    
    .company_details,
    .contact_details {
        margin-bottom: 4px;
    }
    
    .footer_copy .copyright {
        font-size: 10px;
        margin-top: 8px;
    }
    
    .footer_menu {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .footer_menu li a {
        font-size: 11px;
        padding: 5px 0;
    }
}