/* 1. VARIABLES & RESET */
:root {
    --primary-green: #27ae60;
    --primary-hover: #219150;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --border-color: #dcdde1;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

/* 2. CONTAINER */
.create-story-container {
    background: var(--white);
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    overflow: hidden;
}

header {
    padding: 25px;
    border-bottom: 1px solid #eee;
    text-align: center;
    background: var(--white);
}

header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-green);
    letter-spacing: -0.5px;
}

.form-body {
    padding: 30px;
}

/* 3. COVER PICKER (2:3 Aspect Ratio) */
.cover-picker-section {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.aspect-ratio-box {
    width: 160px;
    height: 240px; /* 2:3 ratio */
    background-color: #f9f9f9;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.aspect-ratio-box:hover {
    border-color: var(--primary-green);
    background-color: #f0fdf4;
}

.placeholder-content {
    text-align: center;
    color: var(--text-muted);
}

.placeholder-content .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.placeholder-content p {
    font-size: 0.85rem;
    font-weight: 600;
}

#image-display {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* 4. INPUT GROUPS */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

input[type="text"], 
textarea, 
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    background: #fafafa;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-green);
    background: var(--white);
}

textarea {
    resize: vertical;
}

/* 5. TERMS SECTION */
.terms-section {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 25px 0;
    background: #fdfdfd;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.terms-section input[type="checkbox"] {
    margin-top: 4px;
    transform: scale(1.2);
    cursor: pointer;
}

.terms-section label {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #666;
}

.legal-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 700;
}

.legal-link:hover {
    text-decoration: underline;
}

/* 6. SUBMIT BUTTON */
.submit-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}

.submit-btn:hover {
    background-color: var(--primary-hover);
}

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

.submit-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    box-shadow: none;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .form-body {
        padding: 20px;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
}