/* Peoria Jumpstart - Custom Styles */
/* Brand Colors */
:root {
    --brand-red: #FF3B30;
    --brand-dark: #050505;
    --brand-panel: #121212;
    --brand-accent: #32D74B;
    --brand-gold: #FFD60A;
}

/* Brand Color Utilities */
.text-brand-red { color: #FF3B30; }
.bg-brand-red { background-color: #FF3B30; }
.border-brand-red { border-color: #FF3B30; }
.text-brand-dark { color: #050505; }
.bg-brand-dark { background-color: #050505; }
.text-brand-accent { color: #32D74B; }
.bg-brand-accent { background-color: #32D74B; }
.text-brand-gold { color: #FFD60A; }
.bg-brand-gold { background-color: #FFD60A; }

/* Brand Colors with Opacity */
.bg-brand-red\/5 { background-color: rgba(255, 59, 48, 0.05); }
.bg-brand-red\/10 { background-color: rgba(255, 59, 48, 0.1); }
.bg-brand-red\/20 { background-color: rgba(255, 59, 48, 0.2); }
.bg-brand-red\/30 { background-color: rgba(255, 59, 48, 0.3); }

/* Gradient Utilities */
.from-brand-red {
    --tw-gradient-from: #FF3B30;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 59, 48, 0));
}
.to-red-800 { --tw-gradient-to: #991b1b; }

/* Hover Utilities */
.hover\:bg-brand-red:hover { background-color: #FF3B30; }
.hover\:text-brand-red:hover { color: #FF3B30; }

/* Dark Mode Utilities */
.dark .dark\:bg-brand-dark { background-color: #050505; }
.dark .dark\:bg-brand-accent { background-color: #32D74B; }
.dark .dark\:text-brand-accent { color: #32D74B; }
.dark .dark\:text-white { color: #ffffff; }
.dark .dark\:text-gray-100 { color: #f3f4f6; }
.dark .dark\:text-gray-300 { color: #d1d5db; }
.dark .dark\:text-gray-400 { color: #9ca3af; }
.dark .dark\:bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.dark .dark\:bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.dark .dark\:bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.dark .dark\:border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.dark .dark\:border-gray-700 { border-color: #374151; }
.dark .dark\:border-gray-600 { border-color: #4b5563; }
.dark .dark\:hover\:text-white:hover { color: #ffffff; }
.dark .dark\:hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); }
.dark .dark\:hover\:bg-white\/20:hover { background-color: rgba(255, 255, 255, 0.2); }
.dark .dark\:bg-black\/80 { background-color: rgba(0, 0, 0, 0.8); }
.dark .dark\:bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }
.dark .dark\:bg-black { background-color: #000000; }

/* Dark mode color utilities for specific elements */
.dark .dark\:bg-green-500\/20 { background-color: rgba(34, 197, 94, 0.2); }
.dark .dark\:bg-green-500\/10 { background-color: rgba(34, 197, 94, 0.1); }
.dark .dark\:bg-blue-500\/20 { background-color: rgba(59, 130, 246, 0.2); }
.dark .dark\:bg-blue-500\/10 { background-color: rgba(59, 130, 246, 0.1); }
.dark .dark\:bg-red-500\/20 { background-color: rgba(239, 68, 68, 0.2); }
.dark .dark\:bg-red-500\/10 { background-color: rgba(239, 68, 68, 0.1); }
.dark .dark\:bg-yellow-500\/20 { background-color: rgba(234, 179, 8, 0.2); }
.dark .dark\:bg-yellow-500\/10 { background-color: rgba(234, 179, 8, 0.1); }
.dark .dark\:bg-purple-500\/20 { background-color: rgba(168, 85, 247, 0.2); }
.dark .dark\:bg-purple-500\/10 { background-color: rgba(168, 85, 247, 0.1); }
.dark .dark\:bg-orange-500\/20 { background-color: rgba(249, 115, 22, 0.2); }
.dark .dark\:bg-orange-500\/10 { background-color: rgba(249, 115, 22, 0.1); }
.dark .dark\:bg-amber-500\/20 { background-color: rgba(245, 158, 11, 0.2); }
.dark .dark\:bg-amber-500\/10 { background-color: rgba(245, 158, 11, 0.1); }
.dark .dark\:bg-indigo-500\/20 { background-color: rgba(99, 102, 241, 0.2); }
.dark .dark\:bg-indigo-500\/10 { background-color: rgba(99, 102, 241, 0.1); }
.dark .dark\:bg-cyan-500\/20 { background-color: rgba(6, 182, 212, 0.2); }
.dark .dark\:bg-cyan-500\/10 { background-color: rgba(6, 182, 212, 0.1); }

/* Font families */
body { font-family: 'Outfit', sans-serif; }
.font-mono { font-family: 'Space Grotesk', monospace; }

/* Glass Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.dark .glass-panel {
    background: rgba(18, 18, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Dashboard Input */
.dashboard-input {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #d1d5db;
    color: #111827;
    padding: 10px 0;
    width: 100%;
    font-family: 'Space Grotesk', monospace;
    outline: none;
}
.dark .dashboard-input {
    border-bottom: 1px solid #3F3F46;
    color: white;
}
.dashboard-input:focus {
    border-bottom-color: #FF3B30;
}

/* Dashboard Label */
.dashboard-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #4b5563;
    letter-spacing: 0.05em;
    font-weight: 700;
}
.dark .dashboard-label {
    color: #71717A;
}

/* Select Options */
option {
    background-color: white;
    color: black;
}
.dark option {
    background-color: #121212;
    color: white;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.active {
    display: flex;
}

/* Modal Panel */
.modal-panel {
    background: white;
    border-radius: 1rem;
    max-width: 32rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.dark .modal-panel {
    background: #121212;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    z-index: 10;
    border: none;
}
.close-btn:hover {
    background: #ef4444;
    color: white;
}
.dark .close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #9ca3af;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #FF3B30;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Service Option */
.service-option {
    transition: all 0.2s ease;
}
.service-option:hover {
    transform: scale(1.02);
}

/* Price Breakdown */
.price-breakdown {
    font-size: 0.75rem;
}
.price-breakdown .line {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}

/* Review Card */
.review-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Stars */
.stars {
    color: #FFD60A;
    letter-spacing: 2px;
}

/* Blog Card */
.blog-card {
    transition: all 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-4px);
}
.blog-card:hover img {
    transform: scale(1.05);
}
.blog-card .img-wrapper {
    overflow: hidden;
}
.blog-card img {
    transition: transform 0.5s ease;
}

/* Category Badge */
.category-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* FAQ Item */
.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}
.faq-question {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
.faq-question:hover {
    background: rgba(255, 255, 255, 0.08);
}
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-answer.open {
    padding: 16px 20px;
    max-height: 500px;
}
.faq-item.active .faq-question {
    background: rgba(255, 59, 48, 0.1);
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}
.faq-icon {
    transition: transform 0.3s ease;
}

/* Light mode FAQ */
html:not(.dark) .faq-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
}
html:not(.dark) .faq-question {
    background: rgba(0, 0, 0, 0.02);
}
html:not(.dark) .faq-question:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Pricing Table */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
}
.pricing-table th,
.pricing-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.pricing-table th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #9ca3af;
}
.pricing-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Light mode pricing table */
html:not(.dark) .pricing-table th,
html:not(.dark) .pricing-table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
html:not(.dark) .pricing-table tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* Price Tag */
.price-tag {
    font-weight: 700;
    color: #32D74B;
}

/* Tax Label */
.tax-label {
    font-size: 0.65rem;
    color: #9ca3af;
    margin-left: 2px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    z-index: 60;
    display: none;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
}
.mobile-menu.active {
    display: flex;
}
.mobile-menu-link {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}
.mobile-menu-link:hover {
    color: #FF3B30;
}

/* Footer Link */
.footer-link {
    color: #9ca3af;
    transition: color 0.2s;
    text-decoration: none;
    cursor: pointer;
}
.footer-link:hover {
    color: #FF3B30;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    z-index: 200;
    animation: slideIn 0.3s ease;
}
.toast.success {
    background: #32D74B;
}
.toast.error {
    background: #FF3B30;
}
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Tracking Line for Small Screens */
@media (max-width: 640px) {
    .tracking-\[0\.2em\] {
        letter-spacing: 0.1em;
    }
}
