/* Psychology Quiz - Public Styles */

@font-face {
font-family:"Num_Medium";
font-weight:normal;
src: url( " fonts/Num_Medium.eot" );
src: local( "☺" ),
url( " fonts/Num_Medium.woff" )
format( "woff" ),
url( " fonts/Num_Medium.ttf" )
format( "truetype" );
}

.psyq-quiz-container,
   .psyq-quiz-container * {
       font-family: 'Num_Medium',Tahoma, Arial, "Segoe UI", sans-serif !important;
   }

.psyq-quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Quiz Info */
.psyq-quiz-info {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.psyq-quiz-info h2 {
    margin-top: 0;
    color: #333;
    font-size: 28px;
}

.psyq-quiz-thumbnail {
    margin: 20px 0;
    text-align: center;
}

.psyq-quiz-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.psyq-quiz-description {
    margin: 20px 0;
    line-height: 1.8;
    color: #666;
}

.psyq-quiz-meta {
    display: flex;
    gap: 30px;
    margin: 25px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    flex-wrap: wrap;
}

.psyq-meta-item {
    display: flex;
    flex-direction: column;
}

.psyq-meta-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.psyq-meta-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.psyq-free-badge {
    background: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-block;
}

/* Alerts */
.psyq-alert {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 6px;
}

.psyq-alert-info {
    background: #e3f2fd;
    border: 1px solid #2196F3;
    color: #1976d2;
}

/* Previous Attempts */
.psyq-previous-attempts {
    margin: 25px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 6px;
}

.psyq-previous-attempts h3 {
    margin-top: 0;
    font-size: 18px;
    color: #333;
}

.psyq-attempt-item {
    padding: 15px;
    margin: 10px 0;
    background: white;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.psyq-view-result {
    color: #2196F3;
    text-decoration: none;
}

.psyq-view-result:hover {
    text-decoration: underline;
}

/* Buttons */
.psyq-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.psyq-btn-primary {
    background: #2196F3;
    color: white;
}

.psyq-btn-primary:hover {
    background: #1976d2;
    color: white;
}

.psyq-btn-secondary {
    background: #757575;
    color: white;
}

.psyq-btn-secondary:hover {
    background: #616161;
    color: white;
}

.psyq-btn-success {
    background: #4CAF50;
    color: white;
}

.psyq-btn-success:hover {
    background: #45a049;
    color: white;
}

.psyq-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.psyq-quiz-actions {
    text-align: center;
    margin-top: 30px;
}

/* Quiz Interface */
.psyq-quiz-interface {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.psyq-quiz-header {
    margin-bottom: 30px;
}

.psyq-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.psyq-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2196F3, #4CAF50);
    transition: width 0.3s ease;
}

.psyq-quiz-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
}

.psyq-question-counter {
    font-weight: 500;
}

.psyq-timer {
    font-weight: 500;
    padding: 8px 15px;
    background: #f5f5f5;
    border-radius: 20px;
}

.psyq-timer-warning {
    background: #ffebee;
    color: #c62828;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Question */
.psyq-question {
    margin: 30px 0;
}

.psyq-question-text {
    font-size: 22px;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
}

.psyq-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.psyq-option {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.psyq-option:hover {
    border-color: #2196F3;
    background: #e3f2fd;
}

.psyq-option label {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    margin: 0;
}

.psyq-option input[type="radio"],
.psyq-option input[type="checkbox"] {
    margin-left: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.psyq-option-text {
    flex: 1;
    font-size: 16px;
    color: #333;
}

.psyq-option input:checked + .psyq-option-text {
    font-weight: 500;
}

.psyq-option:has(input:checked) {
    background: #e3f2fd;
    border-color: #2196F3;
}

/* Navigation */
.psyq-quiz-navigation {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Results */
.psyq-quiz-results {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.psyq-result-header h2 {
    color: #333;
    font-size: 32px;
    margin-bottom: 30px;
}

.psyq-result-score {
    margin: 40px 0;
}

.psyq-score-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.psyq-score-number {
    font-size: 48px;
    font-weight: bold;
}

.psyq-score-label {
    font-size: 16px;
    margin-top: 5px;
}

.psyq-result-analysis {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.psyq-result-analysis h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
}

.psyq-result-analysis p {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

.psyq-result-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Quiz List */
.psyq-quiz-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.psyq-quiz-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.psyq-quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.psyq-quiz-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.psyq-quiz-card-content {
    padding: 20px;
}

.psyq-quiz-card-title {
    margin: 0 0 15px 0;
    font-size: 20px;
}

.psyq-quiz-card-title a {
    color: #333;
    text-decoration: none;
}

.psyq-quiz-card-title a:hover {
    color: #2196F3;
}

.psyq-quiz-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.psyq-quiz-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.psyq-quiz-card-actions {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .psyq-quiz-container {
        padding: 10px;
    }
    
    .psyq-quiz-info,
    .psyq-quiz-interface,
    .psyq-quiz-results {
        padding: 20px;
    }
    
    .psyq-quiz-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .psyq-quiz-navigation {
        flex-direction: column;
    }
    
    .psyq-quiz-navigation .psyq-btn {
        width: 100%;
    }
    
    .psyq-quiz-list {
        grid-template-columns: 1fr;
    }
    
    .psyq-score-circle {
        width: 150px;
        height: 150px;
    }
    
    .psyq-score-number {
        font-size: 36px;
    }
}

/* RTL Support */
[dir="rtl"] .psyq-option input[type="radio"],
[dir="rtl"] .psyq-option input[type="checkbox"] {
    margin-left: 0;
    margin-right: 15px;
}

/* Modal Styles */
.psyq-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

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

.psyq-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.psyq-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
}

.psyq-modal-header h3 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.psyq-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.psyq-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.psyq-modal-body {
    padding: 25px;
}

.psyq-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #e0e0e0;
    text-align: left;
}

.psyq-result-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.psyq-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.psyq-detail-item:last-child {
    border-bottom: none;
}

.psyq-detail-label {
    font-weight: 500;
    color: #666;
}

.psyq-detail-value {
    font-weight: 600;
    color: #333;
}

/* Loading Overlay */
.psyq-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.psyq-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Print Styles */
@media print {
    .psyq-quiz-header,
    .psyq-quiz-navigation,
    .psyq-result-actions {
        display: none;
    }
    
    .psyq-quiz-results {
        box-shadow: none;
    }
    
    .psyq-modal-overlay {
        display: none;
    }
}


  /* Print styles for modal */
   @media print {
       body * {
           visibility: hidden;
       }
       .psyq-modal,
       .psyq-modal * {
           visibility: visible;
       }
       .psyq-modal {
           position: absolute;
           left: 0;
           top: 0;
           width: 100%;
           box-shadow: none;
       }
       .psyq-modal-overlay {
           display: none;
       }
   }

/* Responsive Modal */
@media (max-width: 768px) {
    .psyq-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .psyq-modal-header,
    .psyq-modal-body,
    .psyq-modal-footer {
        padding: 15px;
    }
    
    .psyq-detail-item {
        flex-direction: column;
        gap: 5px;
    }
}
