/* Modern CSS Variables - Inspired by Vercel, Linear, etc. */
:root {
    /* Light theme - Clean and minimal */
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f4f4f5;
    --bg-hover: #f1f3f4;
    --text-primary: #171717;
    --text-secondary: #737373;
    --text-tertiary: #a3a3a3;
    --border-color: #e5e5e5;
    --border-hover: #d4d4d8;

    /* Modern accent colors */
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-hover: #5a6fd8;

    /* Status colors */
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;

    /* Modern shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-mono: 'SF Mono', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

[data-theme="dark"] {
    /* Dark theme - Modern and elegant */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-hover: #262626;
    --text-primary: #fafafa;
    --text-secondary: #a3a3a3;
    --text-tertiary: #737373;
    --border-color: #262626;
    --border-hover: #404040;

    /* Enhanced shadows for dark mode */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
}

/* Modern reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Modern container with better spacing */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(1rem, 5vw, 2rem);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Modern header design */
header {
    text-align: center;
    margin-bottom: clamp(2rem, 8vw, 4rem);
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Logo and Title - Modern styling */
.logo-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-normal);
}

.logo-title:hover {
    transform: translateY(-1px);
}

.logo {
    width: 280px;
    height: 80px;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    filter: drop-shadow(var(--shadow-md));
}

.logo:hover {
    transform: scale(1.05) rotate(1deg);
    filter: drop-shadow(var(--shadow-lg));
}

h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.025em;
}

.theme-toggle {
    position: relative;
    background: var(--surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
    background: var(--surface-hover);
    border-color: var(--border-default);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.theme-toggle:active {
    transform: scale(0.98);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: all var(--transition-normal);
    color: var(--text-primary);
}

.theme-toggle:hover svg {
    transform: rotate(12deg) scale(1.1);
}

.back-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    display: inline-block;
}

.back-link:hover {
    color: var(--accent-hover);
}

/* Ad container */
.ad-container {
    margin: 20px 0;
    text-align: center;
    min-height: 90px;
    background: var(--surface-elevated);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    position: relative;
}

.ad-container.top-ad {
    margin-top: 10px;
    margin-bottom: 30px;
}

.ad-container.bottom-ad {
    margin-top: 30px;
    margin-bottom: 10px;
}

/* Ad placeholder styling */
.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: var(--text-secondary);
    opacity: 0.7;
    gap: 0.5rem;
}

.ad-placeholder p {
    margin: 0;
    font-weight: 500;
    font-size: 0.875rem;
}

.ad-placeholder small {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Ensure ads display properly */
.adsbygoogle {
    display: block !important;
    background: transparent;
}

/* Hide ad containers if ads don't load */
.ad-container:empty {
    display: none;
}

/* Main content */
main {
    flex: 1;
    margin-bottom: 30px;
}

/* Modern form styles */
.paste-form {
    background: var(--surface-elevated);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.paste-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-gradient);
    opacity: 0.6;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    opacity: 0.9;
}

textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    background: var(--surface-base);
    color: var(--text-primary);
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-color-alpha);
    background: var(--surface-elevated);
    transform: translateY(-1px);
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    background: var(--surface-base);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-color-alpha);
    background: var(--surface-elevated);
    transform: translateY(-1px);
}

input[type="text"]:hover,
input[type="password"]:hover,
select:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
}

textarea:focus,
input:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

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

.checkbox-group {
    grid-column: span 2;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
}

/* Modern buttons */
.submit-btn,
.secondary-btn,
.copy-btn,
.action-btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    line-height: 1;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.submit-btn {
    width: 100%;
    background: var(--accent-gradient);
    color: white;
    border: 1px solid transparent;
    min-height: 48px;
}

.submit-btn::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;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.05);
}

.submit-btn:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.submit-btn:disabled::before {
    display: none;
}

.btn-loading {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: inline-block;
}

.secondary-btn {
    background: var(--surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-sm);
}

.secondary-btn:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.copy-btn {
    background: var(--success-gradient);
    color: white;
    margin-left: 0.75rem;
    border: 1px solid transparent;
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.05);
}

.action-btn {
    background: var(--surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    margin: 0 0.375rem;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    min-height: 36px;
}

.action-btn:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.action-btn.danger {
    background: var(--danger-gradient);
    color: white;
    border: 1px solid transparent;
}

.action-btn.danger:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.05);
}

/* Modern result section */
.result {
    background: var(--surface-elevated);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--success-gradient);
    opacity: 0.8;
}

.result h3 {
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.result-content {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: stretch;
}

.result-content input {
    flex: 1;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
    background: var(--surface-base);
    padding: 0.875rem 1rem;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.875rem;
    transition: all var(--transition-normal);
}

.result-content input:focus {
    outline: none;
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px var(--success-color-alpha);
}

.result-info {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Modern paste content */
.paste-content {
    background: var(--surface-elevated);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.paste-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-default);
    background: var(--surface-hover);
    position: relative;
}

.paste-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-gradient);
    opacity: 0.3;
}

.paste-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    line-height: 1;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
}

.status-badge.encrypted {
    background: var(--warning-gradient);
    color: white;
    border-color: var(--warning-color);
}

.status-badge.protected {
    background: var(--danger-color);
    color: white;
}

.date-info {
    color: var(--text-secondary);
    font-size: 14px;
}

.paste-actions {
    display: flex;
    gap: 5px;
}

.content-wrapper {
    padding: 20px;
}

#content-display {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    line-height: 1.5;
    max-height: 500px;
    overflow-y: auto;
}

/* Password form */
.password-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0;
    text-align: center;
}

.password-form h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.password-form p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.password-form .form-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.password-form input {
    min-width: 300px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
}

.password-form button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
}

.password-form button:hover {
    background: var(--accent-hover);
}

/* Error message */
.error-message {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--danger-color);
    text-align: center;
}

.error-message h3 {
    color: var(--danger-color);
    margin-bottom: 15px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 50px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* Content Type Selector */
.content-type-selector {
    margin-bottom: 24px;
}

.type-tabs {
    display: flex;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.type-tab {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.type-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.type-tab.active {
    background: var(--accent-color);
    color: white;
}

/* Content Sections */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Monaco Editor Styles */
.editor-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

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

.editor-container {
    height: 400px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-primary);
}

.viewer-container {
    min-height: 200px;
    max-height: 600px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-primary);
}

/* Image Upload Styles */
.image-upload-area {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    transition: var(--transition);
    background: var(--bg-secondary);
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--accent-color);
    background: var(--bg-tertiary);
}

.drop-zone-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.upload-hint {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.4;
}

/* Image Preview */
.image-preview {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    gap: 16px;
}

.image-preview img {
    max-width: 120px;
    max-height: 120px;
    border-radius: var(--radius);
    object-fit: cover;
}

.image-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.remove-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.remove-btn:hover {
    background: #c82333;
}

/* Image Viewer */
.image-content {
    text-align: center;
}

.image-viewer {
    margin-bottom: 16px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-secondary);
    padding: 20px;
}

.image-viewer img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.image-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Content Type Badge */
.content-type-badge {
    background: var(--warning-color);
    color: #000;
    padding: 4px 8px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
}

/* Language Select */
#language-select {
    min-width: 150px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    .logo-title {
        gap: 10px;
    }

    .logo {
        width: 240px;
        height: 68px;
    }

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

    .checkbox-group {
        grid-column: span 1;
    }

    .paste-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .result-content {
        flex-direction: column;
    }

    .result-content input {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .password-form .form-group {
        flex-direction: column;
    }

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

    .editor-controls {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .editor-actions {
        justify-content: center;
    }

    .editor-container {
        height: 300px;
    }

    .paste-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .paste-actions {
        justify-content: center;
    }

    .image-preview {
        flex-direction: column;
        text-align: center;
    }
}

/* SEO Content Styles */
.seo-content {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

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

.feature {
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.feature p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.use-cases {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.use-cases h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.use-cases ul {
    list-style: none;
    padding: 0;
}

.use-cases li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.use-cases li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Ad Container Styles */
.ad-container {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-container.top-ad,
.ad-container.bottom-ad {
    width: 100%;
    min-height: 90px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.sidebar-ad {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 600px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    z-index: 100;
}

/* Enhanced Header Styles */
.tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

header p.tagline {
    text-align: center;
    max-width: 600px;
    margin: 1rem auto;
}

/* Enhanced Footer Styles */
footer {
    margin-top: 4rem;
    padding: 3rem 0 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.footer-section li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for new content */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sidebar-ad {
        display: none;
    }

    .seo-content {
        padding: 1rem;
        margin: 2rem 0;
    }
}

/* Legal Content Styles */
.legal-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    line-height: 1.8;
}

.legal-content h1 {
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
}

.legal-content h2 {
    color: var(--accent-color);
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem 0;
}

.legal-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-content li {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.legal-content p {
    margin: 1rem 0;
    color: var(--text-secondary);
}

.highlight-box {
    background: var(--bg-primary);
    border: 1px solid var(--accent-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

/* Modern animations and micro-interactions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--accent-color-alpha);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Apply animations to elements */
.paste-form,
.result,
.paste-content {
    animation: fadeInUp 0.6s ease-out;
}

.header-content {
    animation: fadeInUp 0.5s ease-out;
}

.theme-toggle {
    animation: slideInRight 0.5s ease-out 0.2s both;
}

.submit-btn:not(:disabled):hover {
    animation: pulse 1.5s infinite;
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}

/* Enhanced hover effects */
.paste-form:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.result:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-xl);
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Page transition effects */
.page-transition {
    transition: opacity 0.3s ease-in-out;
}

.page-transition.fade-out {
    opacity: 0;
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-base);
}

::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: var(--radius-full);
}

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

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--surface-base);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--border-default);
}

/* Enhanced mobile interactions */
@media (hover: none) and (pointer: coarse) {

    .submit-btn:hover,
    .paste-form:hover,
    .result:hover {
        transform: none;
    }

    .submit-btn:active {
        transform: scale(0.98);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

.highlight-box h3 {
    color: var(--accent-color);
    margin-top: 0;
}

.legal-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Legal page header links */
.header-content h1 a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.header-content h1 a:hover {
    color: var(--accent-hover);
    text-decoration: none;
}