/* FONT IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Montserrat:wght@400;500;600&display=swap');

/* BASIC RESET & THEME */
:root {
    --primary-green: #2e7d32;
    --jungle-green-bg: #004d40;
    --text-light: #e0f2f1;
    --border-color: rgba(255, 255, 255, 0.2);
    --module-bg: rgba(0, 0, 0, 0.2);
    --error-red: #ff4d4d;
    --error-bg: rgba(255, 77, 77, 0.1);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--jungle-green-bg);
    color: var(--text-light);
    margin: 0;
    padding: 0;
}

/* MINIMAL HEADER */
.main-header {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px 20px;
    box-sizing: border-box;
}
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-link img {
    height: 60px;
    vertical-align: middle;
}
.header-nav {
    display: flex;
    gap: 1.5rem;
}
.back-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}
.back-link:hover {
    text-decoration: underline;
}

/* MAIN CONTENT BOX */
.creator-container {
    max-width: 1200px;
    margin: 40px auto;
    background: var(--module-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.creator-container h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 1rem;
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
}
.creator-container .instructional-text {
    text-align: center;
    color: #b0bec5;
    margin-bottom: 3rem;
    font-size: 1.2em;
}

/* FORM LAYOUT */
.form-columns {
    display: flex;
    gap: 2rem;
}
.file-column { flex: 1; }
.details-column { flex: 1; }

/* FORM STYLING */
.form-group {
    margin-bottom: 1.5rem;
    position: relative; /* For search results positioning */
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.form-group input[type="text"],
.form-group input[type="search"],
.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    background-color: rgba(0,0,0,0.2);
    color: var(--text-light);
}

.radio-group {
    display: flex;
    gap: 1.5rem;
}
.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* PREVIEW STYLES */
.video-preview-container, .image-preview-container {
    margin-top: 1rem;
    background-color: #000;
    border-radius: 8px;
}
.video-preview-container video, .image-preview-container img {
    width: 100%;
    max-height: 300px;
    display: block;
    border-radius: 8px;
}

/* TAXA SEARCH STYLES */
.search-results {
    position: absolute;
    background: #1a2e2c;
    border: 1px solid var(--border-color);
    border-radius: 0 0 4px 4px;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
}
.result-item {
    padding: 10px;
    cursor: pointer;
}
.result-item:hover {
    background: var(--primary-green);
}

.selected-item-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: rgba(46, 125, 50, 0.3);
    border: 1px solid var(--primary-green);
    border-radius: 4px;
    margin-top: 0.5rem;
}
.selected-item-display button {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
}

/* TAG INPUT STYLES */
.tag-input-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: rgba(0,0,0,0.2);
}
.tag-input-container input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 4px;
    color: var(--text-light);
    outline: none;
}
.tag-item {
    display: flex;
    align-items: center;
    background-color: var(--primary-green);
    padding: 5px 10px;
    border-radius: 4px;
    gap: 8px;
}
.tag-item button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

/* ERROR STYLES */
.form-error-summary {
    background-color: var(--error-bg);
    border: 1px solid var(--error-red);
    color: var(--text-light);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}
.error-message {
    color: var(--error-red);
    font-size: 0.9em;
    margin-top: 0.25rem;
}

/* ACTION BUTTONS */
.action-bar {
    text-align: right;
    margin-top: 2rem;
}
.publish-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    color: #fff;
    background-color: var(--primary-green);
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}
.publish-btn:hover:not(:disabled) {
    background-color: #4caf50;
}
.publish-btn:disabled {
    background-color: #555;
    cursor: not-allowed;
}