/* Custom styles for AI Humanizer - Only Bootstrap utilities + essential custom styles */
:root {
    --primary-color: #1e3a5f;
    --secondary-color: #2d5a87;
    --accent-color: #4caf50;
    --text-muted: #6c757d;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content area */
main {
    flex: 1;
}

/* Hero section styling */
.hero-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card styling */
.card-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.card-shadow:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Form elements */
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 135, 0.15);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #fff;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.4);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
}

.btn-primary-custom:disabled {
    opacity: 0.6;
    transform: none;
    color: #fff;
}

/* Form textarea */
#text {
    min-height: 200px;
    resize: vertical;
}

/* Textarea wrapper */
.textarea-wrapper {
    position: relative;
}

.textarea-clear-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Character count */
.char-count {
    font-size: 0.875rem;
}

/* Result styling */
.result-section {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    white-space: pre-wrap;
    line-height: 1.8;
}

.stats-card {
    background-color: #e8f5e9;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

/* Alert styling */
.alert-api-key {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
}

/* Feature icons */
.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(45, 90, 135, 0.1);
    font-size: 1.5rem;
}

/* SEO content styling */
.seo-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.seo-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.seo-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.seo-content ul, .seo-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.seo-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* FAQ accordion styling */
.accordion-button:not(.collapsed) {
    background-color: rgba(45, 90, 135, 0.1);
    color: var(--secondary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(45, 90, 135, 0.25);
}

/* Loading spinner */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer styling */
footer {
    background-color: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Link styling for internal navigation */
.nav-link {
    color: var(--secondary-color);
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Badge styling */
.badge-feature {
    background-color: rgba(45, 90, 135, 0.1);
    color: var(--secondary-color);
    font-weight: 500;
}

/* Copy button */
.copy-btn {
    transition: background-color 0.2s ease;
}

/* Error alert */
.alert-error {
    border-left: 4px solid #dc3545;
}

/* Success stats */
.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* CTA buttons */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Paste button styling */
.paste-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 10px;
    transition: background 0.2s;
}

.paste-btn:hover {
    background: #e0e0e0;
}
