:root {
    --background: #000000;
    --background-light: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-rgb: 59, 130, 246;
    --border: #2d2d2d;
    --gradient-bg: linear-gradient(135deg, #000000, #1a1a1a);
    --editor-bg: rgba(30, 41, 59, 0.5);
    --nav-bg: #1a1a1a;
    --border-color: #2d2d2d;
}
[data-theme="light"] {
    --background: #ffffff;
    --background-light: #f3f4f6;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --border: #e5e7eb;
    --gradient-bg: linear-gradient(135deg, #ffffff, #f3f4f6);
    --editor-bg: rgba(243, 244, 246, 0.5);
    --nav-bg: #ffffff;
    --border-color: #e5e7eb;
}

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

body {
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    height: 60px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.language-selector {
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--background-light);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    border-radius: 6px;
    transition: background-color 0.2s ease;
    background: var(--background-light);
    margin-left: 0;
    width: 36px;
    height: 36px;
}

.theme-toggle:hover {
    background: var(--background);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

.sun-icon, .moon-icon {
    transition: all 0.2s ease;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
}

.nav-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #1f2937;
    color: white;
    border: 1px solid #374151;
}

.btn-secondary:hover {
    background: #374151;
}

.hero {
    text-align: center;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.style-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem auto 0.5rem;
    width: 100%;
    padding: 0 1rem;
    border-radius: 12px;
}

.style-option {
    flex: 1;
    min-width: 120px;
    max-width: 140px;
    height: 80px;
    padding: 0.6rem 0.5rem;
    background: var(--editor-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.style-option:hover {
    background: rgba(45, 100, 241, 0.1);
    border-color: #2d64f1;
}

.style-option.selected {
    background: rgba(45, 100, 241, 0.15);
    border-color: #2d64f1;
    box-shadow: 0 0 0 1px #2d64f1;
}

.style-icon {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    line-height: 1;
}

.style-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    line-height: 1;
}

.style-description {
    font-size: 0.65rem;
    color: var(--text-secondary);
    line-height: 1.1;
    opacity: 0.8;
}

.editors-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1800px;
    padding: 0 2rem;
}

.editor-container {
    background: var(--editor-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    min-width: 0;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
}

.editor-container:hover {
    border-color: rgba(79, 70, 229, 0.4);
}

.editor-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.editor-icon {
    font-size: 2rem;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
}

.editor-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-right: 1rem;
}

.editor-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.editor-textarea {
    width: 100%;
    height: 300px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
    resize: none;
    padding: 1rem;
    outline: none;
}

.editor-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

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

.word-count-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.word-count {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.transform-button {
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.transform-button::before {
    content: '✨';
}

#copy-button::before {
    content: '📋';
}

#use-again-button::before {
    content: '🔄';
}

.transform-button:hover {
    opacity: 0.9;
}

.action-button {
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-button:hover {
    opacity: 0.9;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.features-section {
    padding: 80px 0;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.1), transparent 70%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    text-align: left;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: #6366f1;
    padding: 0.25rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-content {
    flex: 1;
}

.feature-title {
    color: var(--text-color);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.feature-description {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.advantages-section {
    padding: 80px 0;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.advantages-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.1), transparent 70%);
    pointer-events: none;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    text-align: left;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: #6366f1;
    padding: 0.25rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon svg {
    width: 24px;
    height: 24px;
}

.advantage-content {
    flex: 1;
}

.advantage-title {
    color: var(--text-color);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.advantage-description {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.necessity-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15), transparent 70%);
}

.necessity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.necessity-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.necessity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

.necessity-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.necessity-icon svg {
    width: 24px;
    height: 24px;
}

.necessity-content {
    flex: 1;
}

.necessity-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.necessity-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.benefits-section {
    padding: 80px 0;
    background: var(--gradient-bg);
}

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

.benefit-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.benefit-description {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1rem;
}

.faq-section {
    background: var(--bg-color);
    padding: 80px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 3rem auto 0;
    padding: 0 2rem;
}

.faq-item {
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.faq-item:hover .faq-question {
    background: rgba(255, 255, 255, 0.1);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.question-text {
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    display: none;
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.5rem;
    background: transparent;
    color: var(--text-color);
    line-height: 1.6;
}

.faq-answer p {
    margin: 0;
}

.faq-item:hover .faq-answer {
    display: block;
}

.get-started-btn {
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.get-started-btn::before {
    content: '🚀';
}

.get-started-btn:hover {
    opacity: 0.9;
}

.points-display {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-weight: 500;
}

.points-number {
    color: var(--text-primary);
}

.points-icon {
    font-size: 0.9em;
}

.btn-upgrade {
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
    color: white;
}

.btn-upgrade:hover {
    opacity: 0.9;
}

.btn-user {
    padding: 0.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    overflow: hidden;
}

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.btn-user:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Notification System */
.floating-notification {
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 0.875rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1100;
    pointer-events: none;
}

.floating-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.floating-notification.error {
    background: rgba(220, 38, 38, 0.9);
}

.floating-notification.success {
    background: rgba(34, 197, 94, 0.9);
}

.input-section,
.output-section {
    max-width: 1800px;
    width: 100%;
    margin: 1rem auto;
}

.input-container,
.output-container {
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.main-content {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0;
}

@keyframes warning-flash {
    0%, 50%, 100% {
        box-shadow: 0 0 0 2px rgba(99, 102, 241, 0);
        border-radius: 12px;
    }
    25%, 75% {
        box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.5);
        border-radius: 12px;
    }
}

.style-options.highlight-warning {
    animation: warning-flash 1s ease-in-out;
}

@keyframes warningPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

.highlight-warning {
    animation: warningPulse 1s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.updating {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

@media (max-width: 1200px) {
}

@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
    
    .features-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .editors-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .features-section,
    .advantages-section,
    .necessity-section,
    .benefits-section,
    .faq-section {
        padding: 60px 0;
    }
    
    .features-grid,
    .advantages-grid,
    .necessity-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card,
    .advantage-card,
    .necessity-card {
        padding: 1.5rem;
    }
    
    .faq-grid {
        padding: 0 1rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem 1rem;
    }
}

@media (max-width: 768px) {
    .style-options {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .style-option {
        width: calc(50% - 0.5rem);
        min-width: unset;
    }
}

@media (max-width: 1400px) {
    .style-options {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 1rem;
    }
    
    .style-option {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .style-options {
        padding: 0 1rem 1rem;
    }
    
    .style-option {
        width: 140px;
        height: 90px;
        padding: 0.75rem;
    }
    
    .style-icon {
        font-size: 1rem;
    }
    
    .style-title {
        font-size: 0.8rem;
    }
    
    .style-description {
        font-size: 0.7rem;
    }
}
