/* Custom styles to complement Tailwind */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9; /* slate-100 */
}

/* Custom gradient text for hero section */
.gradient-text {
    background: linear-gradient(to right, #4f46e5, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Active state for navigation links */
.nav-link.active {
    background-color: #3730a3; /* indigo-800 */
    color: white;
}

/* Hide scrollbar for demo purposes */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Expression code hover effect */
.expression-code:hover {
    background-color: #475569; /* slate-600 */
}

/* Filter button active states */
.filter-btn.active {
    background-color: #ddd6fe; /* purple-200 */
    color: #7c3aed; /* purple-600 */
}

/* Tool card hover animations */
.tool-card {
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Copy toast animation */
#copyToast {
    z-index: 1000;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Table hover effects */
#fontTable tbody tr:hover {
    background-color: #f8fafc; /* slate-50 */
}

/* Smooth page transitions */
.page-transition {
    transition: opacity 0.3s ease-in-out;
}

/* Responsive image scaling */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================ */
/* BRAND GUIDELINES BUILDER STYLES */
/* ============================================ */

/* Progress Step Circles */
.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e2e8f0; /* slate-200 */
    color: #64748b; /* slate-500 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.step-circle.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transform: scale(1.1);
}

.step-circle.completed {
    background-color: #10b981; /* green-500 */
    color: white;
}

.step-circle:hover {
    transform: scale(1.05);
}

/* Progress Step Lines */
.step-line {
    flex: 1;
    height: 3px;
    background-color: #e2e8f0; /* slate-200 */
    margin: 0 8px;
    position: relative;
    top: -1px;
    min-width: 40px;
}

.step-circle.completed + .step-line,
.step-circle.active + .step-line {
    background: linear-gradient(90deg, #10b981 0%, #6366f1 100%);
}

/* Form Input Focus States */
#formContent input[type="text"],
#formContent input[type="url"],
#formContent input[type="email"],
#formContent textarea,
#formContent select {
    transition: all 0.2s ease;
}

#formContent input:focus,
#formContent textarea:focus,
#formContent select:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1), 0 2px 4px -1px rgba(99, 102, 241, 0.06);
}

/* Color Picker Container */
input[type="color"] {
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="color"]:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Preview Content Styling */
#previewContent {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Color Swatch Preview */
.color-swatch-preview {
    transition: all 0.3s ease;
    cursor: pointer;
}

.color-swatch-preview:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Export Button Hover Effect */
button[onclick="exportToPDF()"] {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

button[onclick="exportToPDF()"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4);
}

button[onclick="exportToPDF()"]:active {
    transform: translateY(0);
}

button[onclick="exportToPDF()"]:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Navigation Buttons */
#backBtn,
#nextBtn {
    transition: all 0.2s ease;
}

#backBtn:not(:disabled):hover,
#nextBtn:hover {
    transform: translateY(-2px);
}

#backBtn:not(:disabled):active,
#nextBtn:active {
    transform: translateY(0);
}

/* Notification Toast */
.notification-toast {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Step Content Animations */
#formContent > div {
    animation: slideInUp 0.4s ease-out;
}

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

/* Loading Spinner Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

/* Font Preview Box */
.font-preview-box {
    transition: all 0.3s ease;
}

.font-preview-box:hover {
    background-color: #f1f5f9; /* slate-100 */
    transform: scale(1.02);
}

/* Responsive adjustments for brand guidelines */
@media (max-width: 768px) {
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .step-line {
        min-width: 20px;
        margin: 0 4px;
    }
    
    #stepLabels {
        font-size: 0.65rem;
    }
}

/* Pro Tip / Info Boxes */
.info-box {
    animation: fadeIn 0.5s ease-in-out;
}

/* Gradient Background for Headers */
.gradient-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
}

/* Smooth transitions for all interactive elements */
button,
a,
input[type="color"],
.step-circle,
.filter-btn {
    -webkit-tap-highlight-color: transparent;
}

/* Print styles for PDF generation */
@media print {
    header,
    footer,
    #backBtn,
    #nextBtn,
    button {
        display: none !important;
    }
    
    #previewContent {
        box-shadow: none !important;
        border: none !important;
    }
}

/* Input validation states */
input:invalid:not(:focus):not(:placeholder-shown),
textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ef4444; /* red-500 */
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: #10b981; /* green-500 */
}

/* Custom scrollbar for preview content */
#previewContent::-webkit-scrollbar {
    width: 8px;
}

#previewContent::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

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

#previewContent::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Accessibility improvements */
*:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Smooth height transitions for mobile menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
}
