/* PasteBin Pro - Custom Styles using Bootstrap 5 Only */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    --bs-primary-rgb: 13, 110, 253;
    --bs-secondary-rgb: 108, 117, 125;
    --bs-success-rgb: 25, 135, 84;
    --bs-info-rgb: 13, 202, 240;
    --bs-warning-rgb: 255, 193, 7;
    --bs-danger-rgb: 220, 53, 69;
    --bs-dark-rgb: 33, 37, 41;
    --gradient-primary: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    --gradient-secondary: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    --gradient-success: linear-gradient(135deg, #198754 0%, #20c997 100%);
    --gradient-info: linear-gradient(135deg, #0dcaf0 0%, #6f42c1 100%);
    --gradient-warning: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    --gradient-danger: linear-gradient(135deg, #dc3545 0%, #d63384 100%);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation Styles */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(33, 37, 41, 0.95) !important;
    transition: all 0.3s ease;
    z-index: 1050;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
}
.navbar-brand a {
    color: inherit;
    text-decoration: none;
}

.navbar-brand img, .footer-brand-img {
    width: 30px;
    height: 30px;
    margin-right: 0.3rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover {
    color: var(--bs-warning) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--bs-warning);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
    left: 10%;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    min-height: 60vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="80" r="2" fill="white" opacity="0.1"/><circle cx="40" cy="60" r="1" fill="white" opacity="0.05"/></svg>');
    pointer-events: none;
}

.hero-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(5deg); 
    }
}

/* Stats Section */
.stats-section {
    background-color: var(--bs-dark);
}

.stat-item {
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    border-radius: 1rem 1rem 0 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-secondary {
    background: var(--gradient-secondary) !important;
}

.bg-gradient-info {
    background: var(--gradient-info) !important;
}

.bg-gradient-success {
    background: var(--gradient-success) !important;
}

.bg-gradient-warning {
    background: var(--gradient-warning) !important;
}

.bg-gradient-danger {
    background: var(--gradient-danger) !important;
}

/* Form Enhancements */
.form-control, .form-select {
    border-radius: 0.75rem;
    border: 2px solid #dee2e6;
    
    font-weight: 500;
}

.form-control:focus, .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
    transform: translateY(-1px);
}

.form-control-lg, .form-select-lg {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
}

/* Textarea specific */
#content {
    resize: vertical;
    min-height: 400px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    background-color: #fafbfc;
}

/* Clear button styling */
#clearContent {
    opacity: 0;
    transition: all 0.3s ease;
}

.position-relative:hover #clearContent,
#clearContent:hover {
    opacity: 1;
}

/* Button Enhancements */
.btn {
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn * {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(var(--bs-primary-rgb), 0.3);
}

.btn-warning {
    background: var(--gradient-warning);
    border: none;
    color: #000;
}

.btn-warning:hover {
    background: var(--gradient-warning);
    transform: translateY(-2px);
    color: #000;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover,
.btn-outline-warning:hover {
    transform: translateY(-1px);
}

/* Features Section */
.features-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.feature-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: white;
    border-radius: 1rem;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
    border-color: var(--bs-primary);
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card:hover .feature-icon i {
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(-5px);
    }
}

/* About Section */
.about-section {
    background: white;
}

.about-illustration {
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.6; 
        transform: scale(1.05);
    }
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.accordion-item {
    border-radius: 0.75rem !important;
    overflow: hidden;
    margin-bottom: 1rem;
    border: none !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.accordion-button {
    font-weight: 600;
    background: white;
    border: none !important;
    padding: 1.25rem 1.5rem;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-primary);
    color: white;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.125);
}

/* List Group Enhancements */
.list-group-item {
    border-left: none !important;
    border-right: none !important;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.list-group-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    transform: translateX(5px);
    border-left: 4px solid var(--bs-primary) !important;
}

.list-group-item:first-child {
    border-top: none !important;
}

.list-group-item:last-child {
    border-bottom: none !important;
}

/* Pro Tips Section */
.tip-item {
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.tip-item:hover {
    background: rgba(var(--bs-primary-rgb), 0.05);
    transform: translateX(5px);
}

.tip-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

/* Code Display */
pre {
    background: #1e293b !important;
    border: none;
    border-radius: 0.75rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    max-height: 600px;
    overflow: auto;
    position: relative;
    margin: 0;
    padding: 2rem 1rem 1rem;
}

pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
    border-radius: 0.75rem 0.75rem 0 0;
}

code {
    background: transparent !important;
    padding: 0 !important;
    font-family: inherit;
    color: #e2e8f0 !important;
    font-size: inherit;
}

/* Prism.js Dark Theme - Override any conflicts */
pre[class*="language-"] {
    margin: 0 !important;
    padding: 2rem 1rem 1rem !important;
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-radius: 0.75rem !important;
    overflow: auto !important;
}

code[class*="language-"] {
    background: transparent !important;
    color: #e2e8f0 !important;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* Enhanced syntax highlighting - Prevent CSS conflicts */
.token.comment, 
.token.prolog, 
.token.doctype, 
.token.cdata { 
    color: #64748b !important; 
}

.token.punctuation { 
    color: #cbd5e1 !important; 
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted { 
    color: #fbbf24 !important; 
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted { 
    color: #34d399 !important; 
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string { 
    color: #60a5fa !important; 
}

.token.atrule,
.token.attr-value,
.token.keyword { 
    color: #a78bfa !important; 
}

.token.function,
.token.class-name { 
    color: #fb7185 !important; 
}

.token.regex,
.token.important,
.token.variable { 
    color: #f59e0b !important; 
}

/* Ensure no Bootstrap classes interfere with Prism */
pre .token {
    background: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Fix any potential class-name conflicts */
.class-name {
    color: #fb7185 !important;
}

/* Footer Styles */
footer {
    background: var(--bs-dark) !important;
    margin-top: 3rem;
}

footer h5, footer h6 {
    color: white !important;
    font-weight: 700;
}



footer .social-links a:hover {
    color: var(--bs-warning) !important;
    transform: translateY(-2px);
}

/* Theme Toggle */
#themeToggle {
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

#themeToggle:hover {
    transform: rotate(180deg);
}

/* Theme transition */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.card, .navbar, .form-control, .form-select, .list-group-item, 
.feature-card, .accordion-button, .accordion-body {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Alert Enhancements */
.alert {
    border: none !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-left: 4px solid transparent !important;
    font-weight: 500;
}

.alert-success { 
    border-left-color: var(--bs-success) !important; 
    background-color: rgba(var(--bs-success-rgb), 0.1);
}
.alert-danger { 
    border-left-color: var(--bs-danger) !important; 
    background-color: rgba(var(--bs-danger-rgb), 0.1);
}
.alert-warning { 
    border-left-color: var(--bs-warning) !important; 
    background-color: rgba(var(--bs-warning-rgb), 0.1);
}
.alert-info { 
    border-left-color: var(--bs-info) !important; 
    background-color: rgba(var(--bs-info-rgb), 0.1);
}

/* Badge Styles */
.badge {
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Toast Styles */
.toast-container {
    z-index: 1055;
}

.toast {
    backdrop-filter: blur(10px);
}

/* Utility Classes */
.font-monospace {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace !important;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .hero-section {
        padding: 3rem 0;
        min-height: 50vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn-group .btn {
        padding: 0.5rem 0.75rem;
    }
    
    pre {
        font-size: 12px;
        padding: 1.5rem 0.75rem 0.75rem;
    }
    
    #content {
        min-height: 300px;
        font-size: 13px;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }
    
    .stats-section .col-6 {
        margin-bottom: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .hero-section .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .display-4, .display-5 {
        font-size: 1.75rem;
    }
    
    .card-header h5,
    .card-header h6 {
        font-size: 1rem;
    }
    
    .accordion-button {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer,
    .alert,
    .hero-section,
    .stats-section,
    .features-section,
    #themeToggle {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    
    pre {
        white-space: pre-wrap !important;
        word-break: break-word !important;
        background: white !important;
        color: black !important;
        border: 1px solid #ccc !important;
    }
    
    code {
        color: black !important;
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000 !important;
    }
    
    .btn {
        border: 2px solid !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Theme */
body.dark-theme {
    background-color: #1a1a1a !important;
    color: #e4e4e4 !important;
}

body.dark-theme .text-muted {
    color: #a0a0a0 !important;
}

body.dark-theme .card {
    background-color: #2d2d2d !important;
    color: #e4e4e4 !important;
}

body.dark-theme .navbar {
    background-color: rgba(25, 25, 25, 0.95) !important;
}

body.dark-theme .nav-link {
    color: #e4e4e4 !important;
}

body.dark-theme .nav-link:hover {
    color: var(--bs-warning) !important;
}

body.dark-theme .form-control,
body.dark-theme .form-select {
    background-color: #333333 !important;
    border-color: #404040 !important;
    color: #e4e4e4 !important;
}

body.dark-theme .form-control:focus,
body.dark-theme .form-select:focus {
    background-color: #3a3a3a !important;
    border-color: var(--bs-primary) !important;
}

body.dark-theme #content {
    background-color: #262626 !important;
    color: #e4e4e4 !important;
}

body.dark-theme .list-group-item {
    background-color: #2d2d2d !important;
    color: #e4e4e4 !important;
    border-color: #404040 !important;
}

body.dark-theme .list-group-item:hover {
    background: linear-gradient(135deg, #333333 0%, #2d2d2d 100%) !important;
}

body.dark-theme .features-section,
body.dark-theme .faq-section {
    background: #222222 !important;
}

body.dark-theme .about-section {
    background: #1a1a1a !important;
}

body.dark-theme .feature-card {
    background: #2d2d2d !important;
    border-color: #404040 !important;
}

body.dark-theme .accordion-button {
    background-color: #2d2d2d !important;
    color: #e4e4e4 !important;
}

body.dark-theme .accordion-body {
    background-color: #2d2d2d !important;
    color: #e4e4e4 !important;
}

body.dark-theme .accordion-button:not(.collapsed) {
    color: #ffffff !important;
}

body.dark-theme .tip-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .lead {
    color: #d0d0d0 !important;
}

body.dark-theme pre {
    background: #262626 !important;
}

body.dark-theme pre code {
    color: #e4e4e4 !important;
}

/* Enhance code highlighting for both themes */
.hljs {
    background: transparent !important;
    padding: 1em !important;
}

pre code.hljs {
    padding: 0 !important;
}

/* pre code */
pre code.hljs{
    margin-top: 5px !important;
    margin-bottom: 10px !important;
}