﻿/* =================================== 
   비밀번호 생성기 스타일
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4A90E2;
    --secondary-color: #50C878;
    --danger-color: #E74C3C;
    --warning-color: #F39C12;
    --dark-color: #2C3E50;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --text-color: #333333;
    --text-light: #666666;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Main Content */
.main {
    padding: 40px 0;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0;
}

.hero-section h1 {
    font-size: 48px;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 50px;
}

/* Generator Box */
.generator-box {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

/* Password Display */
.password-display {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.password-display input {
    flex: 1;
    padding: 18px 25px;
    font-size: 20px;
    font-family: 'Courier New', monospace;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--light-bg);
    color: var(--dark-color);
    font-weight: 600;
    letter-spacing: 2px;
}

.copy-btn {
    padding: 18px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover {
    background-color: #357ABD;
    transform: scale(1.05);
}

/* Strength Meter */
.strength-meter {
    width: 100%;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
    border-radius: 5px;
}

.strength-bar.weak {
    width: 33%;
    background-color: var(--danger-color);
}

.strength-bar.medium {
    width: 66%;
    background-color: var(--warning-color);
}

.strength-bar.strong {
    width: 100%;
    background-color: var(--secondary-color);
}

.strength-text {
    text-align: center;
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 16px;
}

.strength-text.weak {
    color: var(--danger-color);
}

.strength-text.medium {
    color: var(--warning-color);
}

.strength-text.strong {
    color: var(--secondary-color);
}

/* Options Section */
.options-section {
    margin-bottom: 30px;
}

.option-group {
    margin-bottom: 20px;
}

.option-label {
    display: block;
    margin-bottom: 10px;
}

.option-label span {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--text-color);
}

.option-label strong {
    color: var(--primary-color);
    font-size: 18px;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.checkbox-option:hover {
    background-color: var(--light-bg);
}

.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-option span {
    font-size: 16px;
    color: var(--text-color);
}

/* Generate Button */
.generate-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color), #357ABD);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

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

/* Features Section */
.features-section {
    padding: 80px 0;
}

.features-section h2 {
    font-size: 36px;
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 50px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
}

/* Tips Section */
.tips-section {
    padding: 80px 0;
    background-color: var(--white);
}

.tips-section h2 {
    font-size: 36px;
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 50px;
    font-weight: 700;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tip-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    position: relative;
    transition: transform 0.3s;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), #357ABD);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

.tip-card h3 {
    font-size: 20px;
    color: var(--dark-color);
    margin: 20px 0 12px;
    font-weight: 600;
}

.tip-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-section h2 {
    font-size: 36px;
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 50px;
    font-weight: 700;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.faq-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 15px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 16px;
    }

    .generator-box {
        padding: 25px;
    }

    .password-display {
        flex-direction: column;
    }

    .password-display input {
        font-size: 16px;
    }

    .features-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 28px;
    }

    .features-section,
    .tips-section,
    .faq-section {
        padding: 50px 0;
    }
}

/* SEO Content Section */
.info-section {
    margin-top: 4rem;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.info-section h2 {
    font-size: 1.5rem;
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.info-section h2:first-of-type {
    margin-top: 0;
}

.info-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section ul li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    color: #555;
}

.info-section ul li:before {
    content: "";
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    background: #f8f9fa;
    text-align: center;
    color: #666;
}
