/**
 * GPP Frontend Styles
 * 
 * Styles for public-facing grant listing features:
 * - Eligibility Tool
 * - Schema Markup (no visible styles needed)
 * 
 * @package Grantaura_Professionals_Portal
 * @version 2.0.0
 */

/* =====================================================
   ELIGIBILITY TOOL WRAPPER
   ===================================================== */

.gpp-eligibility-tool-wrap {
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.gpp-mt-8 {
    margin-top: 2rem;
}

/* =====================================================
   ELIGIBILITY TOOL CARD
   ===================================================== */

.gpp-et-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.gpp-et-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 1.5rem;
    text-align: center;
}

.gpp-et-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.gpp-et-title .dashicons {
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
}

.gpp-et-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

/* =====================================================
   ELIGIBILITY TOOL BODY
   ===================================================== */

.gpp-et-body {
    padding: 1.5rem;
    min-height: 200px;
}

.gpp-et-start-screen {
    text-align: center;
    padding: 2rem 0;
}

/* Questions Container */
.gpp-et-question {
    margin-bottom: 1.5rem;
    animation: gppFadeIn 0.3s ease;
}

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

.gpp-et-question-text {
    font-size: 1rem;
    font-weight: 500;
    color: #1a202c;
    margin-bottom: 1rem;
}

.gpp-et-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gpp-et-option {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gpp-et-option:hover {
    border-color: #667eea;
    background: #eef2ff;
}

.gpp-et-option.is-selected {
    border-color: #667eea;
    background: #eef2ff;
}

.gpp-et-option input[type="radio"],
.gpp-et-option input[type="checkbox"] {
    margin-right: 0.75rem;
    accent-color: #667eea;
}

.gpp-et-option-label {
    font-size: 0.9375rem;
    color: #4a5568;
}

/* =====================================================
   ELIGIBILITY TOOL RESULTS
   ===================================================== */

.gpp-et-result {
    text-align: center;
    padding: 2rem 1rem;
}

.gpp-et-result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.gpp-et-result-icon.is-eligible {
    color: #38a169;
}

.gpp-et-result-icon.is-not-eligible {
    color: #e53e3e;
}

.gpp-et-result-icon.is-partial {
    color: #dd6b20;
}

.gpp-et-result-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gpp-et-result-title.is-eligible {
    color: #276749;
}

.gpp-et-result-title.is-not-eligible {
    color: #c53030;
}

.gpp-et-result-title.is-partial {
    color: #c05621;
}

.gpp-et-result-message {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.gpp-et-result-details {
    text-align: left;
    background: #f7fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.gpp-et-result-details ul {
    margin: 0;
    padding-left: 1.25rem;
}

.gpp-et-result-details li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

/* =====================================================
   ELIGIBILITY TOOL FOOTER
   ===================================================== */

.gpp-et-footer {
    padding: 1rem 1.5rem;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
}

.gpp-et-progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

#gpp-et-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.gpp-et-meta {
    font-size: 0.75rem;
    color: #a0aec0;
    text-align: center;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.gpp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.gpp-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.gpp-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.gpp-btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.gpp-btn-secondary:hover {
    background: #cbd5e0;
}

.gpp-btn-block {
    display: block;
    width: 100%;
}

.gpp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =====================================================
   NAVIGATION BUTTONS
   ===================================================== */

.gpp-et-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.gpp-et-nav-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 640px) {
    .gpp-et-header {
        padding: 1.25rem;
    }
    
    .gpp-et-title {
        font-size: 1.125rem;
    }
    
    .gpp-et-body {
        padding: 1rem;
    }
    
    .gpp-et-option {
        padding: 0.75rem;
    }
    
    .gpp-et-result-icon {
        font-size: 3rem;
    }
    
    .gpp-et-result-title {
        font-size: 1.25rem;
    }
}
