/* Custom styles for MultiUse AI Content Transformer */

/* Main container spacing */
.container {
    max-width: 1200px;
}

/* Hero Section */
.hero-section {
    min-height: 500px;
}

/* Custom card styling */
.card {
    border-radius: 12px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
}

.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4) !important;
}

/* Pricing Cards */
.card-header {
    border-radius: 12px 12px 0 0 !important;
}

/* Form elements */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--bs-border-color);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Button styling */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-warning {
    transition: all 0.3s ease-in-out;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Loading spinner alignment */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Results section */
#resultsSection .card {
    background: var(--bs-light) !important;
    color: var(--bs-dark) !important;
    border: 1px solid var(--bs-border-color);
}

/* Character counter styling */
#charCount {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Error section */
.alert {
    border-radius: 8px;
    border: none;
}

/* Navbar brand */
.navbar-brand {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* Section backgrounds */
.bg-gradient {
    position: relative;
    overflow: hidden;
}

.bg-dark {
    background-color: #1a1d24 !important;
}

.bg-secondary {
    background-color: #2d3139 !important;
}

/* Icon styling */
.fas, .far {
    width: 1.2em;
    text-align: center;
}

/* Content stats */
#contentStats {
    font-size: 0.85rem;
}

/* Copy button feedback */
.btn-success {
    background-color: var(--bs-success) !important;
    border-color: var(--bs-success) !important;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Section padding consistency */
section {
    position: relative;
}

/* Badge styling */
.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

/* List styling in pricing cards */
.list-unstyled li {
    position: relative;
    padding-left: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 2rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 3rem 0 !important;
    }
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1d24;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

/* Focus states for accessibility */
.form-control:focus,
.form-select:focus,
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Animation for results appearing */
#resultsSection {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in animation for sections */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

section {
    animation: fadeIn 0.6s ease-in;
}

/* Footer styling */
footer {
    margin-top: auto;
    background-color: #1a1d24 !important;
}

/* Ensure minimum height for full viewport */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #1a1d24;
}

main {
    flex: 1;
}

/* Gradient text effect for headings */
.display-3, .display-4, .display-5 {
    font-weight: 700;
}

/* Card border effects */
.card.border-primary {
    border-width: 2px !important;
}

.card.border-warning {
    border-width: 2px !important;
}

.card.border-success,
.card.border-info,
.card.border-danger,
.card.border-light {
    border-width: 2px !important;
}

/* Icon circles in How It Works section */
.rounded-circle {
    transition: transform 0.3s ease;
}

.rounded-circle:hover {
    transform: scale(1.1);
}

/* Improve readability */
.lead {
    font-size: 1.25rem;
    line-height: 1.6;
}

p {
    line-height: 1.7;
}

/* Dropdown menu styling */
.dropdown-menu {
    border-radius: 8px;
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.dropdown-item {
    border-radius: 4px;
    margin: 2px 4px;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

/* Navbar improvements */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Alert improvements */
.alert {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Utility classes */
.shadow-lg {
    box-shadow: 0 10px 40px rgba(0,0,0,0.3) !important;
}

/* Text color adjustments */
.text-muted {
    color: #a8b0bd !important;
}

/* App Preview Mockup Styles */
.app-preview-mockup {
    perspective: 1000px;
}

.mockup-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.mockup-card:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.mockup-body {
    padding: 1.5rem;
    color: #333;
}

.mockup-textarea {
    margin-bottom: 1.25rem;
}

.mockup-textarea-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
}

.mockup-textarea-content {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem;
    color: #aaa;
    font-size: 0.9rem;
    min-height: 80px;
}

.mockup-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.mockup-select {
    display: flex;
    flex-direction: column;
}

.mockup-select-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
}

.mockup-dropdown {
    background: white;
    border: 2px solid #667eea;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.mockup-dropdown-selected {
    padding: 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    background: #f8f9ff;
    border-bottom: 1px solid #e0e0ff;
}

.mockup-dropdown-options {
    background: white;
}

.mockup-option {
    padding: 0.55rem 0.6rem;
    font-size: 0.8rem;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.mockup-option:last-child {
    border-bottom: none;
}

.mockup-option:hover {
    background-color: #f8f9ff;
}

.mockup-dropdown-simple {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 0.6rem;
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
}

.mockup-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-align: center;
    padding: 0.85rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mockup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Responsive mockup */
@media (max-width: 991px) {
    .mockup-card {
        transform: none;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .mockup-selects {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .mockup-body {
        padding: 1rem;
    }
    
    .mockup-header {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}
