/* Theme Style for Nani Adds Directory
Author: Senior UX Designer / Senior Full-Stack Developer
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Reset & Base Overrides for WordPress */
body { 
    font-family: 'Plus Jakarta Sans', sans-serif !important; 
    scroll-behavior: smooth; 
    overflow-x: hidden;
    background-color: #fcfdfe !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Layout Elements */
.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.category-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border: 1px solid #f1f5f9;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.1);
}

.form-card {
    background: white;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

/* Components */
.btn-primary {
    background: #2563eb;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: scale(1.02);
}

.template-option {
    height: 3.5rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 3px solid transparent;
}

.template-option.selected {
    border-color: #2563eb;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.fade-in { 
    animation: fadeIn 0.4s ease-out; 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* Form Styling */
.form-input-container input, 
.form-input-container select, 
.form-input-container textarea {
    border: 1px solid #e2e8f0 !important;
    width: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
    background-color: #f8fafc;
    outline: none !important;
    transition: all 0.2s;
}

.form-input-container input:focus, 
.form-input-container select:focus, 
.form-input-container textarea:focus {
    border-color: #2563eb !important;
    background-color: white !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
}

/* Specialized Containers */
.qr-upload-box {
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.icon-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    transition: all 0.2s;
}

.icon-action:hover { 
    transform: scale(1.1); 
}

/* Typography */
.prose h1 { font-size: 1.875rem; font-weight: 800; margin-bottom: 1.25rem; color: #111827; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: #1f2937; }
.prose p { margin-bottom: 1.25rem; color: #4b5563; line-height: 1.75; }

/* WP Admin Fixes */
.admin-bar .glass-nav { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .glass-nav { top: 46px; }
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .form-card { padding: 1.5rem; }
    .template-grid { grid-template-columns: repeat(4, 1fr); }
    .business-listings-grid { grid-template-columns: 1fr; }
}