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

body {
    font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: white;
    background-color: #2E3636;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 200px);
}

main {
    margin-bottom: 40px;
    padding-top: 2rem;
}

.input-section {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group label {
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
}

.input-group input {
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-group input:focus {
    outline: none;
    border-color: #FD5D26;
    background: rgba(255, 255, 255, 0.15);
}

.input-group button {
    padding: 12px 24px;
    background-color: #FD5D26;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.input-group button:hover:not(:disabled) {
    background-color: #e54d1f;
}

.input-group button:disabled {
    background-color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.captcha-container {
    margin-top: 15px;
}

.loading {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.error {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

#results {
    margin-top: 30px;
}

section {
    margin-bottom: 40px;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

section h2 {
    color: #FD5D26;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #FD5D26;
    padding-bottom: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    margin-bottom: 0;
    flex: 1;
}

.copy-btn {
    padding: 8px 16px;
    background-color: #FD5D26;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.copy-btn:hover {
    background-color: #e54d1f;
}

.copy-btn.copied {
    background-color: #27ae60;
}

.copy-btn.copied:hover {
    background-color: #229954;
}

.counts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.count-item {
    text-align: center;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.count-label {
    display: block;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.count-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.warning {
    background-color: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    color: #ffc107;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
}

.heading-flow {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Courier New', monospace;
    line-height: 1.8;
    color: white;
}

.heading-item {
    margin: 8px 0;
    color: white;
}

.heading-item.h1 {
    font-weight: bold;
    font-size: 1.1rem;
    margin-left: 0;
    color: #FD5D26;
}

.heading-item.h2 {
    margin-left: 20px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.heading-item.h3 {
    margin-left: 40px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.heading-item.h4 {
    margin-left: 60px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.heading-item.h5 {
    margin-left: 80px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.heading-item.h6 {
    margin-left: 100px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.meta-item {
    margin-bottom: 25px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-item h3 {
    color: #FD5D26;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.meta-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    font-style: italic;
    word-wrap: break-word;
}

.meta-text.empty {
    color: rgba(255, 255, 255, 0.5);
    font-style: normal;
}

.meta-feedback {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

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

.recommendations-section li {
    padding: 12px 15px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #FD5D26;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    .counts-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .heading-item.h2 {
        margin-left: 15px;
    }

    .heading-item.h3 {
        margin-left: 30px;
    }

    .heading-item.h4 {
        margin-left: 45px;
    }

    .heading-item.h5 {
        margin-left: 60px;
    }

    .heading-item.h6 {
        margin-left: 75px;
    }
}
