/* shared.css — общие стили для pSEO-страниц Deely Notes
   Извлечено из index.html (модалка регистрации) и app.html (форма ввода видео).
   Подключается через <link rel="stylesheet" href="/shared.css"> на каждой pSEO-странице. */

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

body {
    font-family: 'Inter', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

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

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: -0.3px;
}

.login-btn {
    color: #007BFF;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #007BFF;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.login-btn:hover {
    background: #007BFF;
    color: white;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    border-top: 1px solid #e0e0e0;
    padding: 30px 20px;
    margin-top: 80px;
    background: #fff;
}

.footer-links {
    max-width: 1200px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.copyright {
    text-align: center;
    color: #555;
    font-size: 12px;
}

/* ==========================================================================
   pSEO-специфичный layout (новые классы, не переиспользованы с других страниц)
   ========================================================================== */

.pseo-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px 40px;
}

.pseo-main h1 {
    font-size: 34px;
    color: #1a1a1a;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.pseo-main > p {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.pseo-main section {
    margin-bottom: 30px;
}

.pseo-main h2 {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-weight: 600;
}

.pseo-main h3 {
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 600;
}

.pseo-main section p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* Benefits */
.pseo-benefits li {
    margin-bottom: 8px;
}

.pseo-benefits li:last-child {
    margin-bottom: 0;
}

/* FAQ */
.pseo-faq h2 {
    margin-bottom: 28px;
}

.pseo-faq .faq-item {
    margin-bottom: 28px;
}

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

.pseo-faq .faq-item h3 {
    margin-bottom: 8px;
}

.pseo-faq .faq-item p {
    margin: 0;
}

.pseo-source-note {
    font-size: 13px;
    color: #888;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

/* ==========================================================================
   Форма ввода видео (из app.html — .download-form / .url-input / .download-btn)
   ========================================================================== */

.download-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 36px 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.url-input-container {
    position: relative;
    margin-bottom: 24px;
}

.url-input {
    width: 100%;
    padding: 16px 20px;
    border: 1.5px solid #bbb;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    font-family: 'Inter', Arial, sans-serif;
    color: #333;
    transition: border-color 0.2s;
}

.url-input::placeholder {
    color: #666;
    font-size: 14px;
}

.url-input:focus {
    border-color: #7ED321;
}

.form-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    text-align: left;
}

.form-label {
    display: block;
    font-size: 13px;
    color: #444;
    margin-bottom: 7px;
    font-weight: 500;
}

.form-select {
    width: 100%;
    padding: 11px 15px;
    border: 1.5px solid #bbb;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    font-family: 'Inter', Arial, sans-serif;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.form-select:focus {
    border-color: #aaa;
}

@media (max-width: 768px) {
    .form-options {
        grid-template-columns: 1fr;
    }
}

.download-btn {
    background: #7ED321;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Inter', Arial, sans-serif;
    letter-spacing: -0.1px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.download-btn:hover:not(:disabled) {
    background: #6BC91A;
}

.download-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.error-banner {
    display: none;
    margin-top: 16px;
    padding: 13px 16px;
    background: #fff8f8;
    border: 1px solid #f5c6c6;
    border-radius: 8px;
    color: #b00020;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
}

.error-banner.show {
    display: block;
}

/* ==========================================================================
   Модалка регистрации (из index.html — .modal-overlay / .modal / .form-* и т.д.)
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: white;
    border-radius: 8px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
}

.modal-title {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
}

.modal-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

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

.form-label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #333;
}

.form-input:focus {
    outline: none;
    border-color: #7ED321;
}

.form-input.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.submit-btn {
    width: 100%;
    background: #7ED321;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.confirmation-screen {
    display: none;
}

.confirmation-title {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

.confirmation-text {
    font-size: 15px;
    color: #666;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 10px;
}

.user-email {
    color: #007BFF;
    font-weight: 600;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #7ED321;
}

/* ==========================================================================
   Embedded-видео на pSEO-странице (опциональный блок, если задан embed_video_id)
   ========================================================================== */

.pseo-video-embed {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.pseo-video-embed iframe {
    display: block;
    width: 100%;
    border: none;
}

.pseo-summarize-this-btn {
    display: block;
    margin: 0 auto 8px;
}

.pseo-or-divider {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin: 16px 0;
}
