/* Public Pages CSS */

/* Navigation Styles */
.public-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand .brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #667eea;
}

.login-link {
    color: #667eea !important;
}

.cta-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
    padding: 10px 20px;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    color: white !important;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #4a5568;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.public-main {
    margin-top: 70px; /* Account for fixed nav */
}

.public-page {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2d3748;
}

/* Footer Styles */
.public-footer {
    background: #2d3748;
    color: white;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-description {
    opacity: 0.8;
    line-height: 1.6;
    max-width: 300px;
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Utility Classes */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.2rem;
    color: lightgray;
    max-width: 600px;
    margin: 0 auto;
}

.preview-card h3 {
    color: white;

}

.preview-card p {
    color: lightgray;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    padding: 12px 24px;
    border: 2px solid #667eea;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 24px 24px 0;
}

.card-content {
    padding: 0 24px 24px;
}

.card-footer {
    padding: 0 24px 24px;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

/* Spacing Utilities */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }
.p-5 { padding: 40px; }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: #667eea; }
.text-secondary { color: #718096; }
.text-muted { color: #a0aec0; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .section-container {
        padding: 0 16px;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

.scale-in {
    animation: scaleIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Prashna Public Page */
.prashna-hero {
    background: linear-gradient(135deg, #f8f9ff, #faf5ff);
    padding: 100px 20px 60px;
}

.prashna-hero-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.prashna-hero .title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
}

.prashna-hero .subtitle {
    font-size: 1.15rem;
    color: #4a5568;
    margin: 0;
}

.prashna-layout {
    max-width: 1200px;
    margin: -60px auto 80px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.prashna-insights-preview {
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.preview-header {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.preview-header .section-title {
    margin-bottom: 12px;
}

.preview-header .section-subtitle {
    color: #4a5568;
    margin: 0;
}

.prashna-insights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.insight-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
    border: 1px solid rgba(102, 126, 234, 0.18);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 18px 35px rgba(102, 126, 234, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.insight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 45px rgba(102, 126, 234, 0.18);
}

.insight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(102, 126, 234, 0.12);
    color: #2d3748;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.insight-card h3 {
    color: #2d3748;
    margin-bottom: 12px;
}

.insight-card p {
    color: #4a5568;
    margin-bottom: 16px;
}

.insight-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.insight-list li {
    padding-left: 22px;
    position: relative;
    color: #4a5568;
}

.insight-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.prashna-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(102, 126, 234, 0.15);
    padding: 32px;
}

.prashna-card h2,
.prashna-card h3 {
    color: #2d3748;
    margin-bottom: 12px;
}

.prashna-card .section-subtitle {
    color: #4a5568;
    margin-bottom: 24px;
}

.guidance-card {
    background: linear-gradient(180deg, #fefefe 0%, #f5f8ff 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.guidance-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.guidance-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
    color: #4a5568;
}

.guidance-list li:last-child {
    border-bottom: none;
}

.info-box {
    background: #ffffff;
    border-radius: 16px;
    border: 1px dashed rgba(102, 126, 234, 0.35);
    padding: 20px;
    color: #4a5568;
}

.prashna-form .form-group {
    margin-bottom: 20px;
}

.prashna-form .inline-group {
    display: flex;
    gap: 16px;
}

.prashna-form .inline-field {
    flex: 1;
}

.prashna-form .form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    display: inline-block;
}

.prashna-form .form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prashna-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.location-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.location-btn {
    white-space: nowrap;
}

.location-hint {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 8px;
}

.location-hint.success {
    color: #047857;
}

.location-hint.error {
    color: #b91c1c;
}

.timezone-display {
    padding: 12px 16px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 12px;
    color: #4a5568;
    margin-bottom: 24px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.alert-card {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.alert-card.warning {
    background: #fff7ed;
    border: 1px solid #fb923c;
    color: #7c2d12;
}

@media (max-width: 992px) {
    .prashna-layout {
        grid-template-columns: 1fr;
    }

    .prashna-insights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .prashna-form .inline-group {
        flex-direction: column;
    }

    .location-row {
        flex-direction: column;
    }

    .prashna-card {
        padding: 24px;
    }

    .prashna-insights-grid {
        grid-template-columns: 1fr;
    }

    .insight-card {
        padding: 24px;
    }
}
