/* === SIMPLE PRINT FIX === */
@media print {
    /* Hide all WordPress elements */
    #wpadminbar,
    .site-header,
    header,
    footer,
    .comments,
    .sidebar,
    .navigation,
    .widget,
    .wp-block-navigation,
    .site-footer,
    .entry-footer,
    .comments-area {
        display: none !important;
    }
    
    /* Hide unnecessary elements in your app */
    .sidehustle-app header,
    .sidehustle-app .progress-container,
    .sidehustle-app .navigation,
    .sidehustle-app .btn-back,
    .sidehustle-app .print-actions,
    .sidehustle-app .back-to-test,
    .sidehustle-app .upsell-section,
    .sidehustle-app .disclaimer {
        display: none !important;
    }
    
    /* Show only the results page */
    .sidehustle-app .results-page {
        display: block !important;
    }
    
    /* Hide the questionnaire */
    .sidehustle-app #hustleAnalyzer,
    .sidehustle-app .question-page {
        display: none !important;
    }
    
    /* Basic print optimization */
    .sidehustle-app {
        max-width: 100% !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    .sidehustle-app .hustle-suggestion {
        break-inside: auto !important;     /* CHANGE THIS */
        page-break-inside: auto !important; /* CHANGE THIS */
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        margin-bottom: 20px !important;
    }
}
/* === RESET THEME CONFLICTS === */
.container:not(.sidehustle-app) {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* === MAIN PLUGIN STYLES === */
.sidehustle-app {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sidehustle-app header {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.sidehustle-app header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: white !important;
}

.sidehustle-app .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    color: white !important;
}

.sidehustle-app .progress-container {
    padding: 15px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.sidehustle-app .progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.sidehustle-app .progress {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    width: 0%;
    transition: width 0.5s ease;
}

.sidehustle-app .progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #6c757d;
}

.sidehustle-app .question-page {
    padding: 30px;
    display: none;
    animation: fadeIn 0.5s ease;
}

.sidehustle-app .question-page.active {
    display: block;
}

.sidehustle-app .question-group {
    margin-bottom: 25px;
}

.sidehustle-app h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.sidehustle-app .question-text {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.sidehustle-app .options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 600px) {
    .sidehustle-app .options-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.sidehustle-app .option-label {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.sidehustle-app .option-label:hover {
    border-color: #3498db;
    background: #f8fafc;
}

.sidehustle-app .option-label.selected {
    border-color: #3498db;
    background: #e8f4fc;
}

.sidehustle-app input[type="checkbox"], 
.sidehustle-app input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.sidehustle-app .navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.sidehustle-app button {
    padding: 12px 25px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.sidehustle-app .btn-next {
    background: #3498db;
    color: white;
}

.sidehustle-app .btn-next:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sidehustle-app .btn-prev {
    background: #95a5a6;
    color: white;
}

.sidehustle-app .btn-prev:hover {
    background: #7f8c8d;
}

.sidehustle-app .results-header {
    text-align: center;
    margin-bottom: 30px;
}

.sidehustle-app .hustle-suggestion {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #3498db;
    transition: transform 0.3s ease;
}

.sidehustle-app .hustle-suggestion:hover {
    transform: translateY(-5px);
}

.sidehustle-app .hustle-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.sidehustle-app .rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
}

.sidehustle-app .hustle-category {
    display: inline-block;
    background: #e1f0fa;
    color: #3498db;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.sidehustle-app .hustle-description {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.sidehustle-app .hustle-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.sidehustle-app .detail-section {
    margin-bottom: 15px;
}

.sidehustle-app .detail-section:last-child {
    margin-bottom: 0;
}

.sidehustle-app .detail-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.sidehustle-app .first-steps {
    background: #e8f6f3;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #2ecc71;
}

.sidehustle-app .steps-title {
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.sidehustle-app .steps-list {
    padding-left: 20px;
}

.sidehustle-app .steps-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.sidehustle-app .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.sidehustle-app .tag {
    background: #e1f0fa;
    color: #2c3e50;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

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

.sidehustle-app .completion-message {
    text-align: center;
    padding: 20px;
    background: #e8f6f3;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 5px solid #2ecc71;
}

.sidehustle-app .option-text {
    font-weight: 500;
}

.sidehustle-app .results-page {
    display: none;
    padding: 30px;
    animation: fadeIn 0.5s ease;
}

.sidehustle-app .results-page.active {
    display: block;
}

.sidehustle-app .back-to-test {
    text-align: center;
    margin-top: 30px;
}

.sidehustle-app .btn-back {
    background: #3498db;
    color: white;
}

.sidehustle-app .btn-back:hover {
    background: #2980b9;
}

.sidehustle-app .error-message {
    color: #e74c3c;
    text-align: center;
    padding: 10px;
    margin: 10px 0;
    background: #fdf2f2;
    border-radius: 5px;
    border: 1px solid #f5c6c6;
    display: none;
}

.sidehustle-app .loading {
    text-align: center;
    padding: 40px;
    display: none;
}

.sidehustle-app .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
     100% { transform: rotate(360deg); }
}

.sidehustle-app .print-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.sidehustle-app .btn-print {
    background: #2ecc71;
    color: white;
}

.sidehustle-app .btn-print:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

.sidehustle-app .user-responses {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
    border-left: 4px solid #3498db;
}

.sidehustle-app .user-responses h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.sidehustle-app .response-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.sidehustle-app .response-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidehustle-app .response-question {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.sidehustle-app .response-answer {
    color: #555;
    line-height: 1.5;
}

.sidehustle-app .resource-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .sidehustle-app .resource-sections {
        grid-template-columns: 1fr 1fr;
    }
}

.sidehustle-app .startup-resources, 
.sidehustle-app .support-communities {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.sidehustle-app .support-communities {
    border-left-color: #2ecc71;
}

.sidehustle-app .resource-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.sidehustle-app .resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidehustle-app .resource-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    line-height: 1.5;
}

.sidehustle-app .resource-list li:last-child {
    border-bottom: none;
}

.sidehustle-app .resource-list li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.sidehustle-app .skill-match {
    margin-left: auto;
    font-size: 0.9rem;
    color: #3498db;
    background: #e8f4fc;
    padding: 4px 12px;
    border-radius: 12px;
    white-space: nowrap;
}

.sidehustle-app .upsell-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 30px 0;
}

.sidehustle-app .upsell-section h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.sidehustle-app .upsell-section p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    opacity: 0.95;
}

.sidehustle-app .upsell-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 25px 0;
}

@media (min-width: 768px) {
    .sidehustle-app .upsell-features {
        grid-template-columns: 1fr 1fr;
    }
}

.sidehustle-app .feature-box {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: left;
}

.sidehustle-app .feature-box h4 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.sidehustle-app .feature-box ul {
    list-style: none;
    padding: 0;
}

.sidehustle-app .feature-box li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.sidehustle-app .feature-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ffd700;
    font-weight: bold;
}

.sidehustle-app .btn-upsell {
    background: #ffd700;
    color: #333;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block;
    transition: transform 0.3s ease;
    margin-top: 10px;
}

.sidehustle-app .btn-upsell:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.sidehustle-app .upsell-note {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.sidehustle-app .disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #856404;
}

.sidehustle-app .disclaimer p {
    margin: 0;
    line-height: 1.5;
}

/* Mobile Responsive Fixes */
@media (max-width: 480px) {
    .sidehustle-app .hustle-title {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sidehustle-app .skill-match {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .sidehustle-app .options-grid {
        grid-template-columns: 1fr !important;
    }
    
    .sidehustle-app .navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .sidehustle-app .navigation button {
        width: 100%;
    }
    
    .sidehustle-app .resource-sections {
        grid-template-columns: 1fr !important;
    }
