/* /wp-content/plugins/growl-fun/assets/css/styles.css */
@font-face {
  font-family: InterVariable;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterVariable.woff2") format("woff2");
}

/* Essential Static Fonts */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Inter-Bold.woff2") format("woff2"); }

:root {
  --font-family-inter: "Inter", "InterVariable", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --primary-bg: #111827;
  --secondary-bg: #1f2937;
  --accent-color: #06b6d4;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --border-color: #374151;
}

.dark {
  --primary-bg: #111827;
  --secondary-bg: #1f2937;
  --accent-color: #06b6d4;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --border-color: #374151;
}

.light {
  --primary-bg: #ffffff;
  --secondary-bg: #f9fafb;
  --accent-color: #3b82f6;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --border-color: #e5e7eb;
}

* {
  font-family: var(--font-family-inter) !important;
}

body {
  font-family: var(--font-family-inter) !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#growl-app {
  font-family: var(--font-family-inter) !important;
  height: 100vh;
  overflow: hidden;
  color: var(--text-primary);
}

/* Variable font support for modern browsers */
@supports (font-variation-settings: normal) {
  * {
    font-family: 'InterVariable', 'Inter', sans-serif !important;
    font-optical-sizing: auto;
  }
}

#growl-app main {
    height: calc(100vh - 4rem);
    overflow-y: auto;
}

#growl-app layout-sidebar {
    height: calc(100vh - 4rem);
    overflow-y: auto;
}


/* Enhanced Modern Card Design */
.modern-card {
    @apply bg-gray-800/50 backdrop-blur-sm rounded-2xl border border-gray-700 shadow-lg hover:shadow-xl transition-all duration-300;
}

/* Animated Gradient Borders */
.animated-border {
    position: relative;
    background: linear-gradient(45deg, #06b6d4, #3b82f6, #8b5cf6, #ec4899);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    padding: 2px;
    border-radius: 1rem;
}

.animated-border > div {
    background: var(--secondary-bg);
    border-radius: 0.875rem;
    padding: 1.5rem;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Professional Button Styles */
.btn-modern {
    @apply px-6 py-3 rounded-xl font-semibold transition-all duration-300 transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-900;
}

.btn-modern-primary {
    @apply bg-gradient-to-r from-cyan-500 to-blue-600 hover:from-cyan-600 hover:to-blue-700 text-white shadow-lg hover:shadow-xl;
}

.btn-modern-secondary {
    @apply bg-gray-700 hover:bg-gray-600 text-white border border-gray-600;
}

button {
    font-size: 16px;
}

/* Theme-Aware Skeleton Loaders */
.skeleton-line,
.skeleton-card,
.skeleton-circle {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

/* Light theme skeleton */
.light .skeleton-line,
.light .skeleton-card,
.light .skeleton-circle {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* Dark theme skeleton */
.dark .skeleton-line,
.dark .skeleton-card,
.dark .skeleton-circle {
    background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-line {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-card {
    height: 100%;
    min-height: 120px;
}

.skeleton-circle {
    border-radius: 50%;
}

/* Ensure proper skeleton sizing */
.skeleton-line.w-16 { width: 4rem; }
.skeleton-line.w-20 { width: 5rem; }
.skeleton-line.w-24 { width: 6rem; }
.skeleton-line.w-32 { width: 8rem; }
.skeleton-line.w-48 { width: 12rem; }
.skeleton-line.w-64 { width: 16rem; }

.skeleton-line.h-2 { height: 0.5rem; }
.skeleton-line.h-3 { height: 0.75rem; }
.skeleton-line.h-4 { height: 1rem; }
.skeleton-line.h-6 { height: 1.5rem; }
.skeleton-line.h-8 { height: 2rem; }
.skeleton-line.h-10 { height: 2.5rem; }

.skeleton-circle.w-8 { width: 2rem; height: 2rem; }
.skeleton-circle.w-10 { width: 2.5rem; height: 2.5rem; }
.skeleton-circle.w-12 { width: 3rem; height: 3rem; }

/* Content loader - Professional spinning loader */
.content-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 1rem;
}

.content-loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

/* Light theme spinner */
.content-loader-spinner {
    border-color: #e5e7eb;
    border-top-color: #3b82f6;
}

/* Dark theme spinner */
.dark .content-loader-spinner {
    border-color: #374151;
    border-top-color: #06b6d4;
}

.content-loader-spinner::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 4px solid transparent;
    animation: spin 0.8s linear reverse infinite;
}

/* Light theme spinner inner */
.content-loader-spinner::after {
    border-top-color: #60a5fa;
}

/* Dark theme spinner inner */
.dark .content-loader-spinner::after {
    border-top-color: #22d3ee;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pulsing background effect for loader */
.content-loader-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: loader-pulse 2s ease-in-out infinite;
}

/* Light theme glow */
.content-loader-glow {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

/* Dark theme glow */
.dark .content-loader-glow {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
}

@keyframes loader-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Enhanced Scrollbar */
.enhanced-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.enhanced-scrollbar-horizontal::-webkit-scrollbar {
    width: 6px;
    height: 4px;
}

.enhanced-scrollbar::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 3px;
}

.enhanced-scrollbar::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 3px;
}

.enhanced-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Enhanced Mobile Scrollbar */
.enhanced-scrollbar-mobile::-webkit-scrollbar {
    width: 4px;
}

.enhanced-scrollbar-mobile::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 2px;
}

.enhanced-scrollbar-mobile::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 2px;
}

.enhanced-scrollbar-mobile::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Dark theme scrollbar */
.dark .enhanced-scrollbar-mobile::-webkit-scrollbar-thumb {
    background: #4b5563;
}

.dark .enhanced-scrollbar-mobile::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Glass Morphism Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Smooth Transitions */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Focus States */
.enhanced-focus:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
    border-radius: 12px;
}

/* Pulse Animation for Active States */
@keyframes gentle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pulse-gentle {
    animation: gentle-pulse 2s ease-in-out infinite;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-down {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

.animate-slide-down {
    animation: slide-down 0.3s ease-out;
}

/* Status Badges */
.status-badge {
    @apply px-3 py-1 text-xs rounded-full font-medium;
}

.status-active { @apply bg-green-500/20 text-green-400 border border-green-500/30; }
.status-pending { @apply bg-yellow-500/20 text-yellow-400 border border-yellow-500/30; }
.status-completed { @apply bg-blue-500/20 text-blue-400 border border-blue-500/30; }
.status-frozen { @apply bg-red-500/20 text-red-400 border border-red-500/30; }

/* Task Type Colors */
.task-type-video { @apply bg-red-500/20 text-red-400; }
.task-type-repost { @apply bg-blue-500/20 text-blue-400; }
.task-type-quote { @apply bg-green-500/20 text-green-400; }
.task-type-follow { @apply bg-purple-500/20 text-purple-400; }
.task-type-like { @apply bg-pink-500/20 text-pink-400; }

/* Mobile Optimizations */
@media (max-width: 768px) {
    .mobile-optimized {
        @apply px-4 py-3 text-sm;
    }
    
    .mobile-grid {
        @apply grid-cols-1 gap-4;
    }
    
    .mobile-bottom-nav {
        @apply fixed bottom-0 left-0 right-0 bg-gray-900/95 backdrop-blur-xl border-t border-gray-800 shadow-2xl flex justify-around py-2;
    }
}

/* Toast Notifications */
.toast-slide-enter-active,
.toast-slide-leave-active {
  transition: all 0.5s ease;
}

.toast-slide-enter-from {
  opacity: 0;
  transform: translate(-50%, -100%);
}

.toast-slide-leave-to {
  opacity: 0;
  transform: translate(-50%, -100%);
}

.toast-slide-enter-to {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Notification Badges */
.notification-badge {
    @apply absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full w-5 h-5 flex items-center justify-center shadow-lg;
}

/* Aspect Ratio Utilities */
.aspect-w-16 {
  position: relative;
}

.aspect-h-9 {
  padding-bottom: 56.25%;
}

.aspect-w-16 > * {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* Bottom Sheet Animations */
.bottom-sheet-enter-active {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-sheet-leave-active {
    transition: all 0.2s cubic-bezier(0.4, 0, 1, 1);
}

/* Lucide Icon Fixes */
.lucide {
    display: block !important;
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.backface-hidden {
    backface-visibility: hidden;
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Loading Spinner */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Custom Shadows */
.shadow-glow {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

/* Responsive Typography */
@media (max-width: 640px) {
    .text-responsive {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
}

/* Focus Visible Polyfill */
.focus-visible:focus:not(:focus-visible) {
    outline: none;
}

.focus-visible:focus-visible {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

/* Selection Styles */
::selection {
    background-color: rgba(6, 182, 212, 0.3);
    color: white;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .modern-card {
        border-width: 2px;
    }
    
    .btn-modern {
        border-width: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Lucide icon fixes */
.lucide {
    display: block !important;
}

@keyframes fade-in {
    from { 
        opacity: 0; 
        transform: translateY(-10px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes slide-down {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
        max-height: 0;
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
        max-height: 200px;
    }
}

.animate-fade-in {
    animation: fade-in 0.2s ease-out;
}

.animate-slide-down {
    animation: slide-down 0.3s ease-out;
}

/* Ensure proper spacing for mobile */
@media (max-width: 640px) {
    .ml-15 {
        margin-left: 3.75rem; /* 60px - matches icon width + gap */
    }
}

/* Enhanced mobile responsive styles */
@media (max-width: 475px) {
    .xs\:inline {
        display: inline !important;
    }
    
    .xs\:hidden {
        display: none !important;
    }
}

/* Ensure more menu has proper z-index and positioning */
.relative .absolute {
    z-index: 10;
}

/* Prevent body scroll when dropdowns are open */
body.mobile-dropdown-open {
    overflow: hidden;
}

/* Style for task detail */
@keyframes pulse-subtle {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.8; }
        }
        @keyframes pulse-slow {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        @keyframes bounce-subtle {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-2px); }
        }
        @keyframes success-glow {
            0%, 100% { box-shadow: 0 0 0 rgba(34, 197, 94, 0); }
            50% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.3); }
        }
        .animate-pulse-subtle {
            animation: pulse-subtle 2s ease-in-out infinite;
        }
        .animate-pulse-slow {
            animation: pulse-slow 3s ease-in-out infinite;
        }
        .animate-bounce-subtle {
            animation: bounce-subtle 2s ease-in-out infinite;
        }
        .animate-success-glow {
            animation: success-glow 2s ease-in-out infinite;
        }

/* Chart animations */
@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

@keyframes slide-down {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-slide-down {
    animation: slide-down 0.2s ease-out;
}


/* Prevent logo size flash and ensure consistent sizing */
#growl-app img[alt*="GROWL"],
#growl-app img[data-dark-logo],
#growl-app img[data-light-logo] {
    height: 2rem !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
    transition: none !important;
}

/* Ensure landing page logo is properly sized */
#growl-app .min-h-screen nav img {
    height: 2rem !important;
    width: auto !important;
    max-width: 150px !important;
}

/* Critical: Prevent any layout shifts during loading */
#app-skeleton-loader img,
#growl-app layout-header img {
    height: 2rem !important;
    width: auto !important;
    object-fit: contain !important;
}

/* Ensure smooth transition from skeleton to app */
#app-skeleton-loader {
    transition: opacity 0.3s ease-out;
}

#app-skeleton-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Ensure app takes full height immediately */
#growl-app > div:not(.fixed) {
    min-height: 100vh;
}

/* Prevent flash of unstyled content */
[v-cloak] {
    display: none !important;
}

/* Ensure smooth app loading transition */
#growl-app {
    transition: opacity 0.3s ease-in;
}

#app-skeleton-loader {
    transition: opacity 0.3s ease-out;
}

/* Skeleton loader animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Ensure skeleton elements have proper styling */
.skeleton-line {
    background: linear-gradient(
        90deg,
        rgba(156, 163, 175, 0.2) 25%,
        rgba(156, 163, 175, 0.3) 50%,
        rgba(156, 163, 175, 0.2) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Dark theme skeleton */
.dark .skeleton-line {
    background: linear-gradient(
        90deg,
        rgba(55, 65, 81, 0.6) 25%,
        rgba(75, 85, 99, 0.8) 50%,
        rgba(55, 65, 81, 0.6) 75%
    );
    background-size: 200% 100%;
}