/* 기본 스타일 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더 스타일 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
    color: #667eea;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    margin: 0 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: white;
    padding: 4px;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #667eea;
}

/* 언어 선택기 */
.language-selector {
    display: flex;
    gap: 5px;
    margin-left: 20px;
}

.lang-btn {
    background: none;
    border: 2px solid #667eea;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.lang-btn.active {
    background: #667eea;
    color: white;
}



/* 히어로 섹션 */
.hero {
    padding: 100px 0 60px;
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

/* 광고 배너 */
.ad-banner {
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.1);
}

.ad-placeholder {
    background: rgba(255, 255, 255, 0.2);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    color: white;
    backdrop-filter: blur(10px);
    max-width: 70%;
    margin: 0 auto;
}

.ad-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.7;
}

.ad-placeholder p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* 섹션 공통 스타일 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 비밀번호 생성기 섹션 */
.generator-section {
    padding: 64px 0;
}

.generator-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin: 0 auto;
}

.password-display {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}

#passwordOutput {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    transition: border-color 0.3s ease;
}

#passwordOutput:focus {
    outline: none;
    border-color: #667eea;
}

.copy-btn, .refresh-btn {
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #667eea;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1rem;
}

.copy-btn:hover, .refresh-btn:hover {
    background: #5a6fd8;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.option-group {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid #e1e5e9;
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.length-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

#passwordLength {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

#passwordLength::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

#lengthValue {
    font-weight: 600;
    color: #667eea;
    min-width: 30px;
    text-align: center;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.generate-btn, .secondary-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.generate-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.secondary-btn {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.secondary-btn:hover {
    background: #667eea;
    color: white;
}

.multiple-passwords {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e5e9;
}

.multiple-passwords h3 {
    margin-bottom: 1rem;
    color: #333;
}

.password-list {
    display: grid;
    gap: 10px;
}

.password-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.password-item span {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.password-item button {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    background: #667eea;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
}

/* 기능 섹션 */
.features-section {
    padding: 64px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 소개 섹션 */
.about-section {
    padding: 64px 0;
}

.about-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.about-text p {
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.8;
}

/* 푸터 */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 64px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: #667eea;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .language-selector {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .generator-card {
        padding: 2rem;
        margin: 0 10px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        padding: 2rem;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .generator-card {
        padding: 1.5rem;
    }
    
    .password-display {
        flex-direction: column;
    }
    
    .copy-btn, .refresh-btn {
        width: 100%;
    }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.generator-card, .feature-card, .about-content {
    animation: fadeInUp 0.6s ease-out;
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
} 

.shield-logo {
  width: 48px;
  height: 56px;
  background: linear-gradient(135deg, #2ecc71 60%, #27ae60 100%);
  position: relative;
  border-radius: 24px 24px 32px 32px / 20px 20px 40px 40px;
  box-shadow: 0 2px 8px rgba(44, 204, 113, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #fff;
  margin-right: 12px;
  border: 2.5px solid #1abc9c;
} 

.shield-logo-css {
  width: 48px;
  height: 56px;
  background: linear-gradient(135deg, #2ecc71 60%, #27ae60 100%);
  position: relative;
  border-radius: 24px 24px 32px 32px / 20px 20px 40px 40px;
  box-shadow: 0 2px 8px rgba(44, 204, 113, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-right: 12px;
  border: 2.5px solid #1abc9c;
  overflow: hidden;
}

.shield-dots {
  display: flex;
  justify-content: center;
  gap: 2.5px;
  margin-top: 8px;
  margin-bottom: 6px;
}
.shield-dots span {
  display: block;
  width: 3.5px;
  height: 3.5px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.7;
}

.shield-lock {
  position: relative;
  width: 22px;
  height: 28px;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lock-shackle {
  width: 14px;
  height: 10px;
  border: 3px solid #fff;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
}
.lock-body {
  width: 18px;
  height: 16px;
  background: #fff;
  border-radius: 4px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 1px 2px rgba(44,204,113,0.08);
}
.lock-keyhole {
  width: 3px;
  height: 7px;
  background: #b2bec3;
  border-radius: 2px;
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
} 

.shield-logo-modern {
  width: 52px;
  height: 60px;
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  position: relative;
  border-radius: 24px 24px 36px 36px / 20px 20px 44px 44px;
  box-shadow: 0 4px 16px rgba(56, 249, 215, 0.18), 0 0 0 2px #e0f7ef inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-right: 14px;
  border: 2px solid #b2f7e2;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.shield-logo-modern:hover {
  box-shadow: 0 6px 24px rgba(56, 249, 215, 0.28), 0 0 0 3px #b2f7e2 inset;
}

.shield-dots-modern {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 10px;
  margin-bottom: 8px;
}
.shield-dots-modern span {
  display: block;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.85;
  box-shadow: 0 1px 2px rgba(56, 249, 215, 0.12);
}

.shield-lock-modern {
  position: relative;
  width: 22px;
  height: 28px;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lock-shackle-modern {
  width: 14px;
  height: 10px;
  border: 2.5px solid #fff;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  box-shadow: 0 1px 2px rgba(56, 249, 215, 0.10);
}
.lock-body-modern {
  width: 16px;
  height: 14px;
  background: #fff;
  border-radius: 5px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 6px rgba(56, 249, 215, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lock-keyhole-modern {
  width: 3.5px;
  height: 7px;
  background: #38f9d7;
  border-radius: 2px;
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 2px #43e97b;
}

/* 광고 스타일 */
.ad-unit {
    text-align: center;
    margin: 20px 0;
    min-height: 90px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #e9ecef;
}

.ad-unit ins {
    display: block;
    margin: 0 auto;
}

/* 모바일에서 광고 최적화 */
@media (max-width: 768px) {
    .ad-unit {
        margin: 15px 0;
        min-height: 60px;
    }
}

/* 광고 로딩 상태 */
.ad-unit:empty::before {
    content: "광고 로딩 중...";
    display: block;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    padding: 20px;
}

/* 광고 클릭 영역 최적화 */
.ad-unit ins {
    cursor: pointer;
    transition: opacity 0.2s;
}

.ad-unit ins:hover {
    opacity: 0.9;
} 