/* style.css - полностью обновленный дизайн */
:root {
    /* Цветовая схема */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-dark: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    
    /* Серая шкала */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Статусные цвета */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Тени */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Радиусы */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Анимации */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Максимальные ширины */
    --max-width-xs: 480px;
    --max-width-sm: 640px;
    --max-width-md: 768px;
    --max-width-lg: 1024px;
    --max-width-xl: 1200px;
    --max-width-2xl: 1400px;
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width-xl);
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 18px 0;
    position: relative;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}



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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--gray-900);
    font-weight: 700;
    font-size: 1.5rem;
    transition: all var(--transition);
}

.logo:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.logo-icon {
    font-size: 1.8rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.header-description {
    flex: 1;
    text-align: center;
}

.header-description p {
    color: var(--gray-600);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    padding: 80px 24px 24px;
    transition: right var(--transition);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-link {
    display: block;
    padding: 16px;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius);
    margin-bottom: 8px;
    font-weight: 500;
    transition: all var(--transition);
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: var(--primary-50);
    color: var(--primary);
}

/* Основное содержимое */
.main {
    padding: 40px 0 80px;
}

.hero-section {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Карточка блокнота */
.notepad-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    margin-bottom: 60px;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
    padding: 28px 32px;
    border-bottom: 1px solid var(--gray-200);
}

.card-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.security-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Редактор */
.editor-section {
    padding: 32px;
}

.editor {
    width: 100%;
    min-height: 280px;
    padding: 24px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.7;
    resize: vertical;
    background: var(--gray-50);
    color: var(--gray-800);
    transition: all var(--transition);
    margin-bottom: 16px;
}

.editor:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: white;
}

.editor::placeholder {
    color: var(--gray-400);
    line-height: 1.6;
}

.editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.char-counter {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

.editor-actions {
    display: flex;
    gap: 8px;
}

/* Настройки */
.settings-section {
    padding: 0 32px 32px;
}

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

.settings-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--gray-500);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.settings-toggle:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.settings-toggle svg {
    transition: transform var(--transition);
}

.settings-toggle.active svg {
    transform: rotate(180deg);
}

.settings-content {
    overflow: hidden;
    transition: max-height var(--transition);
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 768px) {
    .settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.toggle-slider {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--gray-300);
    border-radius: 13px;
    transition: all var(--transition-fast);
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.setting-toggle input:checked + .toggle-slider {
    background: var(--primary);
}

.setting-toggle input:checked + .toggle-slider::after {
    transform: translateX(22px);
}

.setting-toggle input {
    display: none;
}

.setting-label {
    font-weight: 500;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.input-field, .select-field {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: all var(--transition);
    background: white;
    color: var(--gray-800);
}

.input-field:focus, .select-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.hint {
    font-size: 0.75rem;
    color: var(--gray-500);
    line-height: 1.4;
    margin-top: 4px;
}

/* Секция действий */
.actions-section {
    padding: 32px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.captcha-container {
    flex: 1;
}

.save-button-container {
    flex-shrink: 0;
}

.save-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: var(--radius-lg);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.save-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.save-button:active {
    transform: translateY(0);
}

.save-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.save-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.save-button:hover::before {
    left: 100%;
}

.save-button-icon {
    display: flex;
    align-items: center;
}

.save-button-text {
    flex: 1;
}

.save-button-hint {
    font-size: 0.75rem;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

/* Секция результата */
.success-card {
    background: linear-gradient(135deg, var(--success), #34d399);
    color: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin: 32px;
    box-shadow: var(--shadow-lg);
}

.success-header {
    padding: 32px 32px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.success-icon {
    flex-shrink: 0;
}

.success-title h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.success-title p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.success-content {
    padding: 32px;
}

.link-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.link-input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.link-field {
    flex: 1;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--gray-800);
    letter-spacing: 0.3px;
    user-select: all;
    transition: all var(--transition);
}

.link-field:focus {
    outline: none;
    border-color: white;
}

.link-actions {
    display: flex;
    gap: 8px;
}

.link-action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--gray-700);
}

.link-action-btn:hover {
    background: white;
    transform: translateY(-2px);
    color: var(--primary);
}

.link-hint {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.875rem;
    opacity: 0.9;
}

.success-actions {
    display: flex;
    gap: 16px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-2px);
}

/* Кнопки-иконки */
.btn-icon {
    background: white;
    border: 2px solid var(--gray-200);
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--gray-600);
}

.btn-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
    transform: translateY(-1px);
}

/* Особенности */
.features-section {
    margin-bottom: 80px;
    text-align: center;
}

.features-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.features-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

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

.feature-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Инструкции */
.instructions-section {
    margin-bottom: 80px;
}

.instructions-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 50px;
    text-align: center;
}

.instructions-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    position: relative;
}

.instructions-steps::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 120px;
    right: 120px;
    height: 2px;
    background: var(--gray-300);
    z-index: 1;
}

@media (max-width: 768px) {
    .instructions-steps::before {
        display: none;
    }
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 96px;
    height: 96px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 auto 24px;
    box-shadow: var(--shadow-md);
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.step-content p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Предупреждение */
.warning-section {
    background: linear-gradient(135deg, var(--warning), #fbbf24);
    color: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-lg);
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.warning-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.warning-content ul {
    list-style: none;
    margin-bottom: 20px;
}

.warning-content li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
}

.warning-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.warning-note {
    font-size: 0.95rem;
    opacity: 0.9;
}

.warning-note a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
}

/* Подвал */
.footer {
    background: var(--gradient-dark);
    color: white;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr 2fr;
    }
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
}

.footer-column h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-column a,
.footer-column span {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.footer-column a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-credits p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
}

.heart {
    color: #ef4444;
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Уведомления */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    color: var(--gray-800);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition);
    border-left: 4px solid var(--primary);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--error);
}

.toast.warning {
    border-left-color: var(--warning);
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-description {
        display: none;
    }
    
    .actions-section {
        flex-direction: column;
        gap: 24px;
    }
    
    .save-button {
        width: 100%;
        justify-content: center;
    }
    
    .captcha-container {
        width: 100%;
    }
    
    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: left;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .warning-section {
        padding: 30px 20px;
    }
    
    .footer {
        padding: 60px 0 30px;
    }
}

@media (max-width: 480px) {
    .notepad-card {
        margin: 0 -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .card-header,
    .editor-section,
    .settings-section,
    .actions-section {
        padding: 24px 20px;
    }
    
    .success-card {
        margin: 20px;
    }
    
    .success-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

/* Утилиты */
.hidden {
    display: none !important;
}

.icon {
    font-style: normal;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Выделение текста */
::selection {
    background: var(--primary-50);
    color: var(--gray-900);
}

::-moz-selection {
    background: var(--primary-50);
    color: var(--gray-900);
}

/* Стили для капчи */
.g-recaptcha {
    display: inline-block;
}

/* Стили для страницы просмотра */
.view-container {
    max-width: 800px;
    margin: 0 auto;
}

.status-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    display: block;
}

.status-card h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.status-message {
    color: var(--gray-600);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.status-info {
    background: var(--gray-100);
    padding: 16px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-700);
    margin-bottom: 32px;
}

.status-actions {
    margin-top: 40px;
}

/* Карточка просмотра заметки */
.note-view-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.note-header {
    background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
    padding: 32px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.note-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-badge {
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge.warning {
    background: var(--warning);
}

.note-content-wrapper {
    padding: 40px;
}

.note-content {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--gray-800);
    background: var(--gray-50);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    max-height: 600px;
    overflow-y: auto;
}

.note-meta {
    padding: 32px;
    border-top: 1px solid var(--gray-200);
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.meta-icon {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.meta-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

.meta-value {
    font-size: 1rem;
    color: var(--gray-800);
    font-weight: 600;
}

.note-actions {
    padding: 32px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.view-warning {
    background: linear-gradient(135deg, var(--warning), #fbbf24);
    color: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-top: 40px;
    box-shadow: var(--shadow-lg);
}

.view-warning h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-warning p {
    line-height: 1.7;
    opacity: 0.9;
}

/* Форма пароля */
.password-form {
    max-width: 400px;
    margin: 32px auto;
}

.error-message {
    background: var(--error);
    color: white;
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@media (max-width: 768px) {
    .note-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .note-content-wrapper {
        padding: 24px;
    }
    
    .note-content {
        padding: 20px;
        font-size: 14px;
    }
    
    .meta-grid {
        grid-template-columns: 1fr;
    }
    
    .note-actions {
        flex-direction: column;
    }
    
    .note-actions .btn-primary,
    .note-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Добавьте в конец style.css */

/* Стили для страницы просмотра */
.view-container {
    max-width: 800px;
    margin: 40px auto;
}

.status-card {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    margin-bottom: 40px;
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    display: block;
}

.status-card h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.status-message {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.status-info {
    background: #f3f4f6;
    padding: 16px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #374151;
    margin-bottom: 32px;
}

.status-actions {
    margin-top: 40px;
}

/* Карточка просмотра заметки */
.note-view-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    margin-bottom: 40px;
    overflow: hidden;
}

.note-header {
    background: linear-gradient(135deg, #eef2ff 0%, white 100%);
    padding: 32px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.note-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-badge {
    background: #6366f1;
    color: white;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge.warning {
    background: #f59e0b;
}

.note-content-wrapper {
    padding: 40px;
}

.note-content {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #1f2937;
    background: #f9fafb;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    max-height: 600px;
    overflow-y: auto;
    margin: 0;
}

.note-meta {
    padding: 32px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.meta-icon {
    font-size: 1.5rem;
    color: #6366f1;
    flex-shrink: 0;
}

.meta-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.meta-value {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 600;
}

.note-actions {
    padding: 32px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.view-warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
    border-radius: 20px;
    padding: 32px;
    margin-top: 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.view-warning h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-warning p {
    line-height: 1.7;
    opacity: 0.9;
}

/* Форма пароля */
.password-form {
    max-width: 400px;
    margin: 32px auto;
}

.password-form .input-field {
    margin-bottom: 16px;
}

.error-message {
    background: #ef4444;
    color: white;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Кнопки */
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #eef2ff;
}

/* Поля ввода */
.input-field {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    background: white;
    color: #1f2937;
}

.input-field:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .note-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .note-content-wrapper {
        padding: 24px;
    }
    
    .note-content {
        padding: 20px;
        font-size: 14px;
    }
    
    .meta-grid {
        grid-template-columns: 1fr;
    }
    
    .note-actions {
        flex-direction: column;
    }
    
    .note-actions .btn-primary,
    .note-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .status-card {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .view-container {
        margin: 20px auto;
    }
    
    .note-view-card {
        margin: 0 -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .note-header,
    .note-content-wrapper,
    .note-meta,
    .note-actions {
        padding: 24px 20px;
    }
    
    .view-warning {
        padding: 24px 20px;
        margin: 20px -16px 0;
        border-radius: 0;
    }
}

/* Подсказки */
.hint {
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.4;
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.icon {
    font-style: normal;
}

/* Утилиты */
.hidden {
    display: none !important;
}


/* Добавьте в конец style.css */

/* Современная шапка */
.modern-header {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
/*    position: sticky;*/
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

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

.main-nav {
    display: flex;
    gap: 24px;
    margin: 0 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-50);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.btn-create {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Исправления для страниц соглашения и контактов */
.privacy-content,
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.card-header {
    text-align: center;
    padding: 40px 20px 20px;
}

.card-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Адаптивность для шапки */
@media (max-width: 768px) {
    .modern-header {
        padding: 12px 0;
    }
    
    .main-nav {
        display: none;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .btn-create {
        width: 100%;
        justify-content: center;
    }
}

/* Для мобильного меню (если нужно) */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }
    
    .mobile-nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: var(--shadow-xl);
        z-index: 1001;
        padding: 80px 24px 24px;
        transition: right var(--transition);
    }
    
    .mobile-nav.active {
        right: 0;
    }
    
    .mobile-nav .nav-link {
        display: block;
        padding: 16px;
        margin-bottom: 8px;
    }
}

/* Исправления для настроек безопасности */
.settings-content.hidden {
    max-height: 0;
    overflow: hidden;
}

.settings-content {
    max-height: 500px;
    transition: max-height 0.3s ease;
}

.settings-toggle.active svg {
    transform: rotate(180deg);
}

/* Стили для страниц privacy.php и contact.php */
.container {
    max-width: var(--max-width-xl);
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    min-height: calc(100vh - 300px);
    padding: 40px 0;
}

.notepad-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    margin-bottom: 40px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
}

/* Исправление для view-count в одноразовых заметках */
.view-count {
    font-size: 0.8em;
    opacity: 0.8;
    margin-left: 4px;
}

/* Затенение для уничтоженных заметок */
.status-card.destroyed {
    background: linear-gradient(135deg, #fef2f2 0%, white 100%);
    border: 2px dashed var(--error);
}

.status-card.expired {
    background: linear-gradient(135deg, #fffbeb 0%, white 100%);
    border: 2px dashed var(--warning);
}


/* Стили для активной навигации */
.nav-link.active {
    color: var(--primary);
    background: var(--primary-50);
    font-weight: 600;
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* Улучшенный header для внутренних страниц */
.modern-header {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
/*    position: sticky;*/
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

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

.main-nav {
    display: flex;
    gap: 24px;
    margin: 0 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-50);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.btn-create {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Адаптивность для шапки */
@media (max-width: 768px) {
    .modern-header {
        padding: 12px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .main-nav {
        margin: 0;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .btn-create {
        width: 100%;
        justify-content: center;
    }
}


/* Стили для контактной формы */
.message-field {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.hint {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 6px;
    display: block;
}

/* Стили для кнопок */
.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
}

/* Добавьте в style.css */
.warning-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    border: 2px solid var(--warning);
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.warning-banner .icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-banner strong {
    color: var(--gray-900);
    display: block;
    margin-bottom: 8px;
}

.warning-banner p {
    color: var(--gray-700);
    margin: 0;
    line-height: 1.6;
}