@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* Global Font Override */
body, .font-sans {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Colors and Custom design variables */
:root {
    --star-size: 18px;
    --star-background: #f59e0b; /* Amber 500 */
    --text-opacity: 1;
    --star-color: rgba(209, 213, 219, var(--text-opacity)); /* Gray 300 */
}

/* Star ratings styling */
.stars {
    --percent: calc(var(--rating) / 5 * 100%);
    display: inline-block;
    font-size: var(--star-size);
}
.stars::before {
    content: "★★★★★";
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--star-background) var(--percent), var(--star-color) var(--percent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Breadcrumb Styling */
.breadcrumb .breadcrumb-item {
    position: relative;
    display: inline;
}

.breadcrumb .breadcrumb-item:first-child {
    margin-left: 0 !important;
}

.breadcrumb .breadcrumb-item:not(:last-child):after {
    content: '/';
    color: rgba(255, 255, 246, 0.4);
    margin: 0 8px;
}

/* WYSIWYG editor container styling */
.reply-box .wysiwyg div[contenteditable] {
    height: 10rem;
    overflow-y: auto;
}

@media screen and (max-width: 576px) {
    .reply-box .wysiwyg div[contenteditable] {
        height: 8rem;
    }
}

.wysiwyg div[contenteditable] {
    height: 16rem;
    overflow-y: auto;
}

.wysiwyg.focus {
    border-width: 2px;
    border-color: #6366f1;
}

.sl-wrapper .sl-close,
.sl-wrapper .sl-navigation button {
    color: #fff;
}

/* Premium Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes floatEffect {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
@keyframes pulseSubtle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .8; transform: scale(1.04); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
}
.animate-float {
    animation: floatEffect 6s ease-in-out infinite;
}
.animate-pulse-subtle {
    animation: pulseSubtle 3s ease-in-out infinite;
}
.animate-fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-slide-up {
    animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Premium Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(241, 245, 249, 0.8);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

/* Inputs and interactive elements */
.input-premium {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border-color: #cbd5e1;
}
.input-premium:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
    outline: none;
}

/* Hover effects */
.hover-card-premium {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 10px 10px -5px rgba(15, 23, 42, 0.02);
    border-color: rgba(99, 102, 241, 0.2);
}

/* Premium gradient backgrounds */
.bg-mesh-purple {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
}
.bg-mesh-blue {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
}
.bg-mesh-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}