/* Custom styles for YouTube Summarizer */

body {
    min-height: 100vh;
    background-color: var(--bs-dark);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

.card {
    border: 1px solid var(--bs-border-color);
    background-color: var(--bs-body-bg);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.card.border-0 {
    border: none !important;
}

.card.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.summary-content {
    line-height: 1.6;
    font-size: 1.1rem;
}

.summary-content h1,
.summary-content h2,
.summary-content h3,
.summary-content h4 {
    color: var(--bs-info);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.summary-content h2 {
    font-size: 1.25rem;
    border-bottom: 1px solid var(--bs-border-color);
    padding-bottom: 0.5rem;
}

.summary-content ul,
.summary-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.summary-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.summary-content ul li {
    list-style-type: disc;
}

.summary-content > h2:first-child {
    margin-top: 0;
}

.summary-content strong {
    color: var(--bs-warning);
}

.summary-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--bs-info), transparent);
    margin: 2rem 0;
}

.summary-content blockquote {
    border-left: 4px solid var(--bs-info);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--bs-secondary);
}

.summary-content p {
    margin-bottom: 1rem;
}

.results-section {
    animation: fadeIn 0.5s ease-in;
}

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

.input-group-text {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Form controls */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid var(--bs-border-color);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

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

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Accessibility improvements */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Alert animations */
.alert {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Logo styling */
.logo-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.logo-container svg {
    transition: transform 0.3s ease;
}

.logo-container svg:hover {
    transform: scale(1.05);
}

/* Header responsive adjustments */
@media (max-width: 768px) {
    .logo-container {
        justify-content: center;
        margin-top: 1rem;
    }
    
    header .col-md-8,
    header .col-md-4 {
        text-align: center !important;
    }
    
    header .col-md-8 h1,
    header .col-md-8 p {
        text-align: center;
    }
}
