/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* ===== HEADER ===== */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* ===== LANGUAGE TOGGLE ===== */
.language-toggle {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: #667eea;
    color: white;
}

.lang-btn:hover {
    transform: translateY(-2px);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===== HERO SECTION ===== */
.hero {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== CARDS ===== */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.card h2 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.card-icon {
    font-size: 2rem;
}

.card-description {
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    transition: border-color 0.3s ease;
}

.form-group input[type="range"] {
    padding: 0;
    border: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
    font-family: 'Courier New', monospace;
}

.range-value {
    color: #667eea;
    font-weight: 600;
}

/* ===== CHECKBOXES ===== */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

/* ===== BUTTONS ===== */
.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

button, .btn {
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e8e8e8;
    border-color: #667eea;
}

.btn-copy {
    background: #f0f0f0;
    color: #333;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-copy:hover {
    background: #667eea;
    color: white;
}

/* ===== OUTPUT SECTION ===== */
.output-section {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    border-left: 4px solid #667eea;
}

.output-label {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.output-value {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
    min-height: 50px;
    display: flex;
    align-items: center;
}

/* ===== STRENGTH INDICATOR ===== */
.strength-indicator {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1rem;
}

.strength-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6b6b 0%, #ffd93d 50%, #6bcf7f 100%);
    transition: width 0.3s ease;
}

.strength-text {
    font-weight: 600;
    min-width: 100px;
    text-align: right;
}

.strength-weak { color: #ff6b6b; }
.strength-medium { color: #ffd93d; }
.strength-strong { color: #6bcf7f; }

/* ===== CHECKLIST ===== */
.checklist {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.checklist-item:last-child {
    margin-bottom: 0;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    font-size: 0.8rem;
    font-weight: bold;
}

.checklist-item.checked .check-icon {
    background: #6bcf7f;
    color: white;
}

.checklist-item.warning .check-icon {
    background: #ffd93d;
    color: white;
}

/* ===== PRIVACY BANNER ===== */
.privacy-banner {
    background: rgba(102, 126, 234, 0.1);
    border-left: 4px solid #667eea;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.privacy-banner strong {
    color: #667eea;
}

/* ===== AD PLACEHOLDER ===== */
.ad-placeholder {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    padding: 1.5rem;
    text-align: center;
    color: #999;
    border-radius: 8px;
    margin: 2rem 0;
    font-size: 0.9rem;
}

/* ===== QUICK NAVIGATION ===== */
.quick-nav {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-nav-label {
    text-align: center;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.quick-nav-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-nav-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
}

.quick-nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.quick-nav-btn:active {
    transform: translateY(-1px);
}

/* ===== INFO SECTION ===== */
.info-section {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.info-section h3 {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.info-item {
    text-align: center;
}

.info-item-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.info-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-item p {
    color: #666;
    font-size: 0.9rem;
}

/* ===== COPY NOTIFICATION ===== */
.copy-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #6bcf7f;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.3s ease;
    z-index: 1000;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FOOTER ===== */
footer {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-text {
    font-size: 0.85rem;
    color: #999;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card h2 {
        font-size: 1.4rem;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    button, .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-links {
        gap: 1rem;
    }

    .quick-nav-buttons {
        flex-direction: column;
    }

    .quick-nav-btn {
        width: 100%;
        justify-content: center;
    }

    .copy-notification {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .language-toggle {
        width: 100%;
        justify-content: center;
    }
}
