/**
 * Custom CSS for Press Release Generator
 * Professional, modern styling with clean typography and responsive design
 */

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.15);
}

header h1 {
    font-weight: 600;
    font-size: 2rem;
}

header p {
    font-size: 1.1rem;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
}

/* Form Styles */
.section-header {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.section-header h6 {
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.form-control::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Press Release Output Styles */
.press-release-output {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    font-family: 'Georgia', serif;
    line-height: 1.8;
    color: #2c3e50;
}

.press-headline {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-align: center;
    border-bottom: 3px solid #007bff;
    padding-bottom: 1rem;
}

.press-dateline {
    font-weight: 600;
    font-size: 1rem;
    color: #495057;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.press-release-output p {
    margin-bottom: 1.5rem;
    text-align: justify;
    font-size: 1rem;
}

.press-contact {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    border-left: 4px solid #007bff;
}

.press-contact h5 {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.press-boilerplate {
    background-color: #f1f3f4;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.press-boilerplate h5 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
}

.press-end {
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 2rem;
    color: #6c757d;
}

/* Badge Styles */
.badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Placeholder Text */
#placeholderText {
    color: #6c757d;
}

#placeholderText i {
    color: #dee2e6;
}

/* Error Styles */
.alert-danger {
    border-radius: 8px;
    border: none;
    background-color: #f8d7da;
    color: #721c24;
}

/* Footer Styles */
footer {
    margin-top: 4rem;
    padding: 2rem 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .press-headline {
        font-size: 1.5rem;
    }
    
    .press-release-output {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
}

/* Animation for smooth transitions */
.card,
.btn,
.form-control,
.form-select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Custom scrollbar for output area */
.press-release-output {
    max-height: 600px;
    overflow-y: auto;
}

.press-release-output::-webkit-scrollbar {
    width: 8px;
}

.press-release-output::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.press-release-output::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.press-release-output::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}