/* 웹툰 서비스 스타일 - 모바일/태블릿 최적화 */
@import url('https://fonts.googleapis.com/css2?family=Chiron+GoRound+TC:wght@200..900&family=Dongle&family=Gothic+A1&family=Gowun+Batang&family=Nanum+Gothic&family=Noto+Serif+KR:wght@200..900&display=swap');


* {font-family: "Gothic A1", sans-serif;font-size: 14px;font-optical-sizing: auto;font-weight: 500;font-style: normal;}
/*
* {font-family: "Chiron GoRound TC", sans-serif;font-size: 14px;font-optical-sizing: auto;font-weight: 500;font-style: normal;}
* {font-family: "Nanum Gothic", sans-serif;font-size: 16px;font-optical-sizing: auto;font-weight: 500;font-style: normal;}	
* {font-family: "Dongle", sans-serif;font-size: 18px;font-optical-sizing: auto;font-weight: 500;font-style: normal;}	
	*/
* {margin: 0;padding: 0;box-sizing: border-box;}
body {font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;line-height: 1;color: #333;background-color: #f5f5f5;}

/* 로그인 페이지 스타일 */
.login-page {background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);min-height: 100vh;display: flex;align-items: center;justify-content: center;padding: 20px;}
.login-container {width: 100%;max-width: 400px;}
.login-box {background: white;padding: 40px 30px;border-radius: 15px;box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);text-align: center;}
.login-title {font-size: 2rem;color: #333;margin-bottom: 10px;font-weight: 700;}
.login-subtitle {color: #666;margin-bottom: 30px;font-size: 1rem;}
.error-message {background-color: #fee;color: #c33;padding: 12px;border-radius: 8px;margin-bottom: 20px;border: 1px solid #fcc;}
.login-form {text-align: left;}
.form-group {margin-bottom: 20px;}
.form-group label {display: block;margin-bottom: 8px;font-weight: 600;color: #555;}
.form-group input {width: 100%;padding: 12px 15px;border: 2px solid #e1e1e1;border-radius: 8px;font-size: 1rem;transition: border-color 0.3s ease;}
.form-group input:focus {outline: none;border-color: #667eea;}
.login-btn {width: 100%;padding: 15px;background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);color: white;border: none;border-radius: 8px;font-size: 1.1rem;font-weight: 600;cursor: pointer;transition: transform 0.2s ease;}
.login-btn:hover {transform: translateY(-2px);}
.login-info {margin-top: 20px;color: #888;font-size: 0.9rem;}

/* 메인 페이지 스타일 */
.main-page {min-height: 100vh;background-color: #f8f9fa;}
.header {background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);color: white;padding: 20px;text-align: center;box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);}
.header h1 {font-size: 1.8rem;margin-bottom: 8px;}
.header p {font-size: 1.1rem;opacity: 0.9;}
.logout-btn {position: absolute;top: 20px;right: 20px;background: rgba(255, 255, 255, 0.2);color: white;border: 1px solid rgba(255, 255, 255, 0.3);padding: 8px 15px;border-radius: 20px;text-decoration: none;font-size: 0.9rem;transition: background-color 0.3s ease;}
.logout-btn:hover {background: rgba(255, 255, 255, 0.3);}

/* 작가 카드 그리드 */
.authors-container {padding: 30px; margin: 0 auto;}
.authors-grid {display: flex;flex-wrap: wrap;gap: 25px;margin-top: 20px;justify-content: center;}

/* 작가 카드 */
.author-card {background: white;border-radius: 10px;overflow: hidden;box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);transition: transform 0.3s ease, box-shadow 0.3s ease;cursor: pointer;width: 230px;margin-bottom: 25px;}
.author-card:hover {transform: translateY(-5px);box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);}
.author-photo {width: 100%;height: 200px;background: linear-gradient(45deg, #f0f0f0, #e0e0e0);display: flex;align-items: center;justify-content: center;color: #999;font-size: 0.9rem;position: relative;overflow: hidden;}
.author-photo img {width: 100%;height: 100%;object-fit: cover;}
.work-cover {width: 100%;height: auto;background: linear-gradient(45deg, #f5f5f5, #e5e5e5);display: flex;align-items: center;justify-content: center;color: #999;font-size: 0.8rem;position: relative;overflow: hidden;}
.work-cover img {width: 100%;height: auto;object-fit: contain;}
.author-info {padding: 20px;}
.author-name {font-size: 1.2rem;font-weight: 500;color: #333;margin-bottom: 8px;}
.work-title {font-size: 1rem;color: #666;margin-bottom: 15px;}
.view-work-btn {display: inline-block;background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);color: white;padding: 10px;border-radius: 20px;text-decoration: none;font-size: 0.9rem;font-weight: 600;transition: transform 0.2s ease;}
.view-work-btn:hover {transform: translateY(-2px);}

/* 작품 페이지 스타일 */
.work-page {min-height: 100vh;background-color: #f8f9fa;}
.work-header {background: white;padding: 20px;text-align: center;box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);margin-bottom: 20px;}
.work-title {font-size: 1.2rem;color: #333;margin-bottom: 10px;font-weight: 700;line-height: 1.5rem;}
.back-btn {position: absolute;top: 20px;right: 20px;background: #667eea;color: white;padding: 12px 15px;border-radius: 20px;text-decoration: none;font-size: 0.9rem;transition: background-color 0.3s ease;}
.back-btn:hover {background: #5a6fd8;}
.work-images {max-width: 700px;margin: 0 auto;padding: 0 20px 40px;}
.work-image {width: 100%;margin-bottom: 20px;border-radius: 10px;/*box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);background: white;*/padding: 10px;}
.work-image img {width: 100%;height: auto;border-radius: 5px;display: block;}

/* 반응형 디자인 */
@media (max-width: 768px) {
	.login-box {padding: 30px 20px;}
	.login-title {font-size: 1.5rem;}
	.header h1 {font-size: 1.5rem;}
	.authors-grid {grid-template-columns: 1fr;gap: 20px;}
	.authors-container {padding: 20px 15px;}
	.author-card {width: 100%;margin-bottom: 0;}
	.author-photo {height: 180px;}
	.work-cover {height: auto;}
	.author-info {padding: 15px;}
	.author-name {font-size: 1.1rem;}
	.work-images {padding: 0 15px 30px;}
	.work-image {margin-bottom: 15px;padding: 8px;}
}

@media (max-width: 480px) {
	.login-container {padding: 10px;}
	.login-box {padding: 25px 15px;}
	.header {padding: 15px;}
	.header h1 {font-size: 1.3rem;}
	.logout-btn, .back-btn {padding: 6px 12px;font-size: 0.8rem;top: 47px;}
	.authors-container {padding: 15px 10px;}
	.author-photo {height: 160px;}
	.work-cover {height: auto;}
	.author-info {padding: 12px;}
	.work-images {padding: 0 10px 20px;}
}

/* 태블릿 세로 모드 최적화 */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
	.authors-container {max-width: 900px;}
	.authors-grid {display: flex;flex-wrap: wrap;gap: 20px;justify-content: center;}
	.author-card {width: 220px;margin-bottom: 20px;}
	.author-photo {height: 220px;}
	.work-cover {height: auto;}
}

/* 태블릿 가로 모드 최적화 */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {

	.authors-grid {display: flex;flex-wrap: wrap;gap: 20px;justify-content: center;}
	.author-card {width: 220px;margin-bottom: 20px;}
	.author-photo {height: 220px;}
	.work-cover {height: auto;}
}

/* 로딩 애니메이션 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.1rem;
    color: #666;
}

/* 플레이스홀더 이미지 스타일 */
.placeholder {
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    border: 2px dashed #ccc;
}

/* QR 코드 스타일 */
.card-actions {display: flex;justify-content: space-between;align-items: center;gap: 15px;margin-top: 15px;}
.qr-code-container {display: flex;flex-direction: column;align-items: center;gap: 5px;}
.qr-code {width: 80px;height: 80px;border: 2px solid #e1e1e1;border-radius: 8px;cursor: pointer;transition: transform 0.2s ease, border-color 0.2s ease;}
.qr-code:hover {transform: scale(1.1);border-color: #667eea;}
.qr-label {font-size: 0.7rem;color: #666;font-weight: 600;text-align: center;}

/* 반응형 QR 코드 */
@media (max-width: 768px) {
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .qr-code {
        width: 50px;
        height: 50px;
    }
    
    .qr-label {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .card-actions {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .qr-code {
        width: 45px;
        height: 45px;
    }
    
    .view-work-btn {
        font-size: 0.8rem;
        padding: 8px 15px;
    }
}

/* QR 코드 모달 스타일 */
.qr-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.qr-modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    top: 25%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    margin: auto;
    transform: translateY(0);
}
.qr-modal-close {position: absolute;top: 15px;right: 20px;font-size: 28px;font-weight: bold;color: #aaa;cursor: pointer;line-height: 1;}
.qr-modal-close:hover {color: #000;}
.qr-modal-content h3 {margin-bottom: 20px;color: #333;font-size: 1.3rem;}
.qr-modal-image {margin-bottom: 20px;}
.qr-modal-image img {width: 200px;height: 200px;border: 2px solid #e1e1e1;border-radius: 10px;}
.qr-modal-content p {color: #666;margin-bottom: 15px;font-size: 0.9rem;}
.qr-modal-info {background: #f8f9fa;padding: 15px;border-radius: 8px;text-align: left;}
.qr-modal-info p {margin-bottom: 8px;font-size: 0.9rem;}
.qr-modal-info strong {color: #333;}

/* 네비게이션 버튼 스타일 */
.nav-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(102, 126, 234, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn span {
    font-weight: bold;
    line-height: 1;
}

/* 태블릿에서만 표시 */
@media (max-width: 767px) {
    .nav-buttons {
        display: none;
    }
}

/* 모달 반응형 */
@media (max-width: 768px) {
    .qr-modal-content {
        padding: 20px;
        max-width: 350px;
    }
    
    .qr-modal-image img {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .qr-modal {
        padding: 10px;
    }
    
    .qr-modal-content {
        padding: 15px;
        max-width: 300px;
    }
    
    .qr-modal-image img {
        width: 150px;
        height: 150px;
    }
    
    .qr-modal-content h3 {
        font-size: 1.1rem;
    }
}
