/* 
   ClassWizard Landing Page - Tailwind Integration
   This file now mainly contains custom component styles that work alongside Tailwind
*/

/* Import Tailwind CSS if not using CDN */
/* @import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities'; */

/* Custom CSS for elements that need special styling beyond Tailwind */

/* Smooth scrolling enhancement */
html {
    scroll-behavior: smooth;
}

/* Focus styles for better accessibility */
*:focus-visible {
    outline: 2px solid #1976D2;
    outline-offset: 2px;
}

/* Custom animations for the hero phone mockup */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced hover effects for phone mockups */
.phone-frame:hover {
    transform: translateY(-4px) perspective(1000px) rotateY(-5deg) rotateX(5deg);
}

/* Notification system styles (for JS functionality) */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-left: 4px solid #1976D2;
    max-width: 400px;
    transform: translateX(450px);
    transition: transform 0.3s ease;
}

.notification--info { 
    border-left-color: #1976D2; 
}

.notification--success { 
    border-left-color: #388E3C; 
}

.notification--error { 
    border-left-color: #D32F2F; 
}

.notification__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.notification__message {
    color: #374151;
    font-weight: 500;
}

.notification__close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #9CA3AF;
    margin-left: 12px;
}

.notification__close:hover {
    color: #374151;
}

.notification.show {
    transform: translateX(0);
}

/* Ripple effect for buttons */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Header scroll effect */
.header-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Keyboard navigation enhancement */
.keyboard-navigation *:focus-visible {
    outline: 2px solid #1976D2 !important;
    outline-offset: 2px !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card {
        border-width: 2px !important;
        border-color: #374151 !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .phone-frame:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .header,
    .store-button,
    .btn {
        display: none !important;
    }
    
    .section-title {
        color: #000 !important;
    }
    
    .hero-title {
        color: #000 !important;
    }
}

/* Custom utilities that Tailwind doesn't cover by default */
.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.backdrop-blur-safari {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Custom gradients for brand consistency */
.bg-gradient-primary {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #388E3C 0%, #2E7D32 100%);
}

.bg-gradient-hero {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

/* Custom shadows that match the design */
.shadow-primary {
    box-shadow: 0 4px 20px 0 rgba(25, 118, 210, 0.15);
}

.shadow-secondary {
    box-shadow: 0 4px 20px 0 rgba(56, 142, 60, 0.15);
}

.shadow-soft {
    box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.05);
}

.shadow-large {
    box-shadow: 0 8px 30px 0 rgba(0, 0, 0, 0.12);
}

.shadow-3xl {
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.25);
}

/* Enhanced background patterns */
.bg-pattern-dots {
    background-image: radial-gradient(circle, rgba(25, 118, 210, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Modern glassmorphism effects */
.backdrop-blur-subtle {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Enhanced hover effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Smooth gradient animations */
.gradient-shift {
    background: linear-gradient(135deg, #1976D2, #388E3C);
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Enhanced button animations */
.btn-primary {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Ensure proper font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loading states (for future use) */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1976D2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ensure consistent spacing for all browsers */
* {
    box-sizing: border-box;
}

/* Improve text rendering */
body {
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}