* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    min-height: 100vh;
    background: #0b0c10;
    color: #c5c6c7;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(11, 12, 16, 0.9);
    border-bottom: 1px solid rgba(102, 252, 241, 0.2);
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.nav-brand span {
    color: #a29bfe; /* Neon Purple */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #c5c6c7;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #a29bfe;
}

.premium-btn {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
    transition: transform 0.2s ease;
}

.premium-btn:hover {
    transform: translateY(-2px);
}

/* Ad Placeholders */
.ad-placeholder {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(162, 155, 254, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
    margin: 20px auto;
    border-radius: 10px;
}

.top-ad {
    width: 728px;
    height: 90px;
    max-width: 95%;
}

.in-article-ad {
    width: 100%;
    height: 250px;
    margin: 30px 0;
}

/* Workspace Container */
.workspace-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.workspace-header {
    text-align: center;
    margin-bottom: 50px;
}

.workspace-header h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
}

.workspace-header h1 span {
    background: linear-gradient(to right, #a29bfe, #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.workspace-header p {
    font-size: 1.2rem;
    color: #a0a0b0;
}

/* Editor Grid */
.editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    height: 600px;
}

.editor-panel {
    background: #1f2833;
    border: 1px solid rgba(162, 155, 254, 0.2);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.panel-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(162, 155, 254, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 1.1rem;
    color: #fff;
}

.word-counter {
    font-size: 0.9rem;
    color: #a29bfe;
    font-weight: 600;
}

.word-counter.limit-reached {
    color: #ff4757;
}

textarea {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    resize: none;
    outline: none;
}

textarea::placeholder {
    color: #454d55;
}

.action-bar {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(162, 155, 254, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.primary-btn {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s;
}

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

.primary-btn:disabled {
    background: #454d55;
    cursor: not-allowed;
    color: #888;
}

.warning-text {
    color: #ff4757;
    font-weight: 600;
    font-size: 0.9rem;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

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

.success-badge {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(31, 40, 51, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(162, 155, 254, 0.2);
    border-top-color: #a29bfe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* SEO Content Section */
.seo-content {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.seo-card {
    background: #1f2833;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(162, 155, 254, 0.1);
}

.seo-card h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
}

.seo-card h3 {
    font-size: 1.4rem;
    color: #a29bfe;
    margin-top: 30px;
    margin-bottom: 15px;
}

.seo-card p {
    color: #c5c6c7;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Footer */
.site-footer {
    background: #0b0c10;
    border-top: 1px solid rgba(162, 155, 254, 0.1);
    padding: 40px 50px 20px;
    margin-top: 80px;
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.footer-logo span {
    color: #a29bfe;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #a0a0b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #a29bfe;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(162, 155, 254, 0.1);
    padding-top: 20px;
    color: #666;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
    .editor-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .editor-panel {
        height: 400px;
    }
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(162, 155, 254, 0.3);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: transform 0.4s ease-in-out;
}

.cookie-banner.hidden {
    transform: translateY(150%);
}

.cookie-banner p {
    color: #c5c6c7;
    font-size: 0.95rem;
    max-width: 800px;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cookie-link {
    color: #a0a0b0;
    text-decoration: underline;
    font-size: 0.9rem;
}

.cookie-link:hover {
    color: #fff;
}

.cookie-btn {
    background: #a29bfe;
    color: #0b0c10;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.cookie-btn:hover {
    background: #6c5ce7;
    color: #fff;
}

/* Legal Pages Content */
.legal-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(162, 155, 254, 0.1);
}

.legal-container h1 {
    font-size: 2.2rem;
    color: #a29bfe;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(162, 155, 254, 0.2);
    padding-bottom: 15px;
}

.legal-container h2 {
    font-size: 1.4rem;
    color: #fff;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-container p {
    color: #c5c6c7;
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-container ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: #c5c6c7;
    line-height: 1.8;
}

.legal-container li {
    margin-bottom: 10px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(162, 155, 254, 0.2);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: #a29bfe;
    outline: none;
}

.submit-btn {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
}
