/* Additional styles for the create handout app */

/* Create index page styles */
.create-options {
    margin: 2rem 0;
}

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

.option-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: #58a6ff;
}

.card-icon {
    font-size: 3rem;
    color: #58a6ff;
    margin-bottom: 1rem;
}

.card-content h3 {
    color: #f0f6fc;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.card-content p {
    color: #7d8590;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.upload-area {
    border: 2px dashed #58a6ff;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #58a6ff;
    background: transparent;
}

.upload-area:hover {
    background: #21262d;
    border-color: #79c0ff;
}

.features {
    margin: 3rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: #58a6ff;
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2.5rem;
    color: #58a6ff;
    margin-bottom: 1rem;
}

.feature-item h4 {
    color: #f0f6fc;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #7d8590;
    font-size: 0.9rem;
}

/* Form styles */
.handout-form {
    max-width: 100%;
}

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

.field {
    display: flex;
    flex-direction: column;
}

.field-full {
    grid-column: 1 / -1;
}

.field-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.field-label.required::after {
    content: '*';
    color: #f85149;
    margin-left: 0.25rem;
}

.field-icon {
    margin-right: 0.5rem;
    color: #58a6ff;
    width: 16px;
}

.field-input,
.field-textarea,
.field-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #30363d;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #21262d;
    color: #e6edf3;
}

.field-input:focus,
.field-textarea:focus,
.field-select:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}

.field-input:invalid,
.field-textarea:invalid {
    border-color: #f85149;
}

.field-input::placeholder,
.field-textarea::placeholder {
    color: #7d8590;
}

.field-textarea {
    resize: vertical;
    min-height: 80px;
}

.field-value {
    padding: 0.75rem;
    background: #21262d;
    border: 2px solid #30363d;
    border-radius: 8px;
    color: #7d8590;
    font-style: italic;
}

/* Header actions */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Save status indicator */
.save-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #161b22;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #30363d;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    color: #e6edf3;
}

.save-status.saving {
    border-color: #d29922;
    color: #d29922;
}

.save-status.saved {
    border-color: #3fb950;
    color: #3fb950;
}

.save-status.error {
    border-color: #f85149;
    color: #f85149;
}

.save-status i {
    font-size: 0.8rem;
}

/* Validation alerts */
.alerts-container {
    margin-bottom: 2rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.4);
    color: #f85149;
}

.alert-success {
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid rgba(63, 185, 80, 0.4);
    color: #3fb950;
}

.alert-warning {
    background: rgba(210, 153, 34, 0.1);
    border: 1px solid rgba(210, 153, 34, 0.4);
    color: #d29922;
}

/* Button enhancements */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: #0969da;
    color: #ffffff;
    border: 1px solid #1f6feb;
    box-shadow: 0 0 20px rgba(9, 105, 218, 0.3);
}

.btn-primary:hover {
    background: #1f6feb;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(31, 111, 235, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #58a6ff;
    border: 1px solid #30363d;
}

.btn-secondary:hover {
    background: #21262d;
    border-color: #58a6ff;
    transform: translateY(-1px);
}

.btn-success {
    background: #238636;
    color: #ffffff;
    border: 1px solid #2ea043;
}

.btn-success:hover {
    background: #2ea043;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(46, 160, 67, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .option-cards {
        grid-template-columns: 1fr;
    }

    .save-status {
        position: relative;
        top: auto;
        right: auto;
        margin: 1rem 0;
    }
}
