﻿:root {
    --primary: #7a4988; /* Deep purple */
    --secondary: #2a9d8f; /* Teal */
    --accent: #e76f51; /* Terracotta */
    --dark: #1a1a2e; /* Deep navy for background */
    --medium: #16213e; /* Medium dark for sections */
    --light: #e9ecef; /* Light gray for text */
    --focus: #ff9e00; /* Focus color for accessibility */
    --button-color: #FF5757; /* Bright pastel red with AAA contrast on white text */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #e7ecef;
    min-height: 100vh;
    padding: 2rem 1rem;
    line-height: 1.6;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 2rem;
    align-items: start;
}

.left-column {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.right-column {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    min-height: 400px;
}

h1 {
    color: #2d3436;
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
}

.subtitle {
    color: #636e72;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.form-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #dfe6e9 0%, #f8f9fa 100%);
    border-radius: 12px;
    border-left: 4px solid #74b9ff;
}

    .form-section h2 {
        color: #2d3436;
        margin-bottom: 1rem;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .form-section h2::before {
            content: '';
            width: 6px;
            height: 6px;
            background: #74b9ff;
            border-radius: 50%;
        }

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    color: #2d3436;
    font-weight: 600;
    font-size: 0.85rem;
}

.required::after {
    content: ' *';
    color: #ff7675;
}

input[type="text"],
input[type="url"],
input[type="time"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 2px solid #dfe6e9;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #ffffff;
}

    input[type="text"]:focus,
    input[type="url"]:focus,
    input[type="time"]:focus,
    input[type="number"]:focus,
    textarea:focus,
    select:focus {
        outline: none;
        border-color: #74b9ff;
        box-shadow: 0 0 0 3px rgba(116, 185, 255, 0.1);
    }

textarea {
    min-height: 70px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.tag-input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
    padding: 0.6rem;
    background: #f8f9fa;
    border-radius: 10px;
    min-height: 50px;
}

.tag {
    background: linear-gradient(135deg, #a29bfe 0%, #74b9ff 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag-remove {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

    .tag-remove:hover {
        background: rgba(255, 255, 255, 0.5);
    }

.add-button {
    background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0.4rem;
}

    .add-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 184, 148, 0.3);
    }

    .add-button:active {
        transform: translateY(0);
    }

.generate-button {
    background: #ff6b9d;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .generate-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(255, 107, 157, 0.4);
        background: #ff5a8f;
    }

    .generate-button:active {
        transform: translateY(0);
    }

.output-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #2d3436;
    border-radius: 16px;
    display: none;
}

    .output-section.active {
        display: block;
    }

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

    .output-header h3 {
        color: #ffffff;
        font-size: 1.2rem;
    }

.copy-button {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .copy-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(232, 67, 147, 0.3);
    }

pre {
    background: #1e272e;
    color: #55efc4;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Loading spinner */
.loading {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
}

    .loading.active {
        display: block;
    }

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b9d;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #2d3436;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    color: #636e72;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h2 {
    color: #2d3436;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.empty-state p {
    font-size: 1rem;
    max-width: 400px;
}

/* Content display */
.content-display {
    display: none;
}

    .content-display.active {
        display: block;
    }

.content-header {
    border-bottom: 3px solid #74b9ff;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

    .content-header h2 {
        color: #2d3436;
        font-size: 1.6rem;
        margin-bottom: 0.25rem;
    }

    .content-header p {
        color: #636e72;
        font-size: 0.95rem;
    }

.content-section {
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #74b9ff;
}

    .content-section h3 {
        color: #2d3436;
        margin-bottom: 0.75rem;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .content-section h3::before {
            content: '';
            width: 6px;
            height: 6px;
            background: #74b9ff;
            border-radius: 50%;
        }

.content-text {
    color: #2d3436;
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .highlights-list li {
        padding: 0.6rem 0;
        border-bottom: 1px solid #dfe6e9;
        color: #2d3436;
        font-size: 0.9rem;
    }

        .highlights-list li:last-child {
            border-bottom: none;
        }

        .highlights-list li::before {
            content: '✓';
            color: #55efc4;
            font-weight: bold;
            margin-right: 0.6rem;
        }

.seo-section {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 10px;
    margin-top: 0.75rem;
    border: 2px solid #dfe6e9;
}

    .seo-section h4 {
        margin-bottom: 0.5rem;
        color: #2d3436;
        font-size: 0.95rem;
    }

.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.keyword-tag {
    background: #74b9ff;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 2px solid #dfe6e9;
}

.action-button {
    background: #55efc4;
    color: #2d3436;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .action-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(85, 239, 196, 0.3);
        background: #4dd4ac;
    }

    .action-button.secondary {
        background: #a29bfe;
        color: white;
    }

        .action-button.secondary:hover {
            background: #9188f5;
            box-shadow: 0 6px 15px rgba(162, 155, 254, 0.3);
        }

.error-message {
    background: #ff7675;
    color: white;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: none;
}

    .error-message.active {
        display: block;
    }

.help-text {
    font-size: 0.75rem;
    color: #636e72;
    margin-top: 0.25rem;
    font-style: italic;
}

@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
    }

    .left-column {
        position: relative;
        max-height: none;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .left-column,
    .right-column {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.4rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .generate-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Screen reader only class for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}




.btn {
    display: block;
    width: 100%;
    padding: 0.85rem;
    background-color: var(--button-color);
    color: white;
    border: 3px solid #000;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px #000;
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
}

    .btn:hover {
        transform: translate(2px, 2px);
        box-shadow: 2px 2px 0px #000;
    }

    .btn:active {
        transform: translate(4px, 4px);
        box-shadow: 0px 0px 0px #000;
    }

    .btn:focus {
        outline: none;
        box-shadow: 4px 4px 0px #000, 0 0 0 2px rgba(255, 87, 87, 0.4);
    }

.btn-form {
    display: block;
    max-width: 300px;
    padding: 0.85rem;
    background-color: var(--button-color);
    color: white;
    border: 3px solid #000;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px #000;
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
}

    .btn-form:hover {
        transform: translate(2px, 2px);
        box-shadow: 2px 2px 0px #000;
    }

    .btn-form:active {
        transform: translate(4px, 4px);
        box-shadow: 0px 0px 0px #000;
    }

    .btn-form:focus {
        outline: none;
        box-shadow: 4px 4px 0px #000, 0 0 0 2px rgba(255, 87, 87, 0.4);
    }