/**
 * Dental DISC Matcher Frontend Styles
 * 
 * This stylesheet defines the appearance of the quiz and results on the frontend.
 */
/* DISC Icon Styles - High Specificity Version */

.dental-disc-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: inherit;
}

.dental-disc-header {
    text-align: center;
    margin-bottom: 30px;
}

.dental-disc-header h2 {
    margin-bottom: 15px;
    font-size: 28px;
    line-height: 1.4;
}

.dental-disc-header p {
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
}

/* Quiz styling */
.dental-disc-quiz {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 30px;
    padding: 30px;
}

.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #3498db;
    width: 16.67%; /* Will be updated by JS */
    transition: width 0.3s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 14px;
    color: #718096;
}

.dental-disc-question {
    margin-bottom: 30px;
}

.dental-disc-question h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.5;
}

.dental-disc-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dental-disc-option {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    margin: 0;
}

.dental-disc-option:hover {
    border-color: #cbd5e0;
    background-color: #f8fafc;
}

.dental-disc-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
}

.option-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    margin-right: 15px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.dental-disc-option input[type="radio"]:checked + .option-content .option-icon {
    border-color: #3498db;
    background-color: #3498db;
}

.dental-disc-option input[type="radio"]:checked + .option-content .option-icon::after {
    content: "";
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
}

.dental-disc-option input[type="radio"]:checked + .option-content {
    background-color: #ebf8ff;
}

.dental-disc-option input[type="radio"]:checked + .option-content .option-text {
    color: #2b6cb0;
}

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

/* For radio buttons with DISC type indicators */
.option-type {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: bold;
}

.dental-disc-option input[type="radio"]:checked + .option-content .option-type {
    opacity: 1;
}

.option-type.location-hamilton,
.option-type.location-brighton,
.option-type.location-burpengary,
.option-type.location-sandstone {
    background-color: #e2e8f0;
    color: #4a5568;
}

.option-type.location-any {
    background-color: #718096;
    color: white;
}

.option-type.d-type {
    background-color: #00ad4c;
    color: white;
}

.option-type.i-type {
    background-color: #cd3741;
    color: white;
}

.option-type.s-type {
    background-color: #00a0d0;
    color: white;
}

.option-type.c-type {
    background-color: #f3cb24;
    color: black;
}

.dental-disc-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.dental-disc-btn {
    background-color: #3498db;
    color: white!!important;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s;
    display: inline-block;
    text-align: center;
}

.dental-disc-btn:hover {
    background-color: #2980b9;
}

.dental-disc-btn-back {
    background-color: transparent;
    color: #718096;
    border: 1px solid #cbd5e0;
}

.dental-disc-btn-back:hover {
    background-color: #f8fafc;
}

.dental-disc-btn:disabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
}

/* Results styling */
.dental-disc-result {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 30px;
    display: none; /* Initially hidden */
}

.dental-disc-result-header {
    margin-bottom: 20px;
    text-align: center;
}

.dental-disc-result-header h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.dental-disc-result-header p {
    color: #4a5568;
    line-height: 1.6;
}

.dental-disc-animation {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.dental-disc-pulse {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #3498db;
    animation: pulse 1.5s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 40px;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(52, 152, 219, 0);
    }
    
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

/* Dentist profile card styling */
.dental-disc-profiles {
    display: none; /* Initially hidden */
    margin-top: 30px;
}

.dental-disc-profile-card {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 24px;
    padding: 24px;
}

/* DISC Profile Smooth Gradient CSS */

/* D-C and C-D combinations */
#dental-disc-profiles .profile-badge .disc-icon.d-c, 
#dental-disc-profiles .profile-badge .disc-icon.c-d { 
    background: linear-gradient(135deg, 
                                #00ad4c 40%, /* Green (D) */
                                #97ba38 50%, /* Blend of green and yellow */
                                #f3cb24 60%  /* Yellow (C) */
                               ) !important; 
}

/* D-S and S-D combinations */
#dental-disc-profiles .profile-badge .disc-icon.d-s, 
#dental-disc-profiles .profile-badge .disc-icon.s-d { 
    background: linear-gradient(135deg, 
                                #00ad4c 40%, /* Green (D) */
                                #00a68e 50%, /* Blend of green and blue */
                                #00a0d0 60%  /* Blue (S) */
                               ) !important; 
}

/* D-I and I-D combinations */
#dental-disc-profiles .profile-badge .disc-icon.d-i, 
#dental-disc-profiles .profile-badge .disc-icon.i-d { 
    background: linear-gradient(135deg, 
                                #00ad4c 40%, /* Green (D) */
                                #667244 50%, /* Blend of green and red */
                                #cd3741 60%  /* Red (I) */
                               ) !important; 
}

/* I-C and C-I combinations */
#dental-disc-profiles .profile-badge .disc-icon.i-c, 
#dental-disc-profiles .profile-badge .disc-icon.c-i { 
    background: linear-gradient(135deg, 
                                #cd3741 40%, /* Red (I) */
                                #e0812f 50%, /* Blend of red and yellow */
                                #f3cb24 60%  /* Yellow (C) */
                               ) !important; 
}

/* I-S and S-I combinations */
#dental-disc-profiles .profile-badge .disc-icon.i-s, 
#dental-disc-profiles .profile-badge .disc-icon.s-i { 
    background: linear-gradient(135deg, 
                                #cd3741 40%, /* Red (I) */
                                #666b88 50%, /* Blend of red and blue */
                                #00a0d0 60%  /* Blue (S) */
                               ) !important; 
}

/* S-C and C-S combinations */
#dental-disc-profiles .profile-badge .disc-icon.s-c, 
#dental-disc-profiles .profile-badge .disc-icon.c-s { 
    background: linear-gradient(135deg, 
                                #00a0d0 40%, /* Blue (S) */
                                #7ab57a 50%, /* Blend of blue and yellow */
                                #f3cb24 60%  /* Yellow (C) */
                               ) !important; 
}

.profile-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 1;
}

.disc-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.3) !important;
}


.best-match-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: #27ae60;
    color: white;
    /* font-size: 12px; */
    /* font-weight: bold; */
    /* padding: 6px 12px; */
    border-radius: 24px;
    font-family: Inter;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 12px;
    line-height: 25px;
    font-weight: 600;
    padding: .7em 1.4em;
}

.match-percentage {
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: #3498db;
    color: white;
    /* font-size: 12px; */
    /* font-weight: bold; */
    /* padding: 6px 12px; */
    border-radius: 24px;
    font-family: Inter;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 12px;
    line-height: 25px;
    font-weight: 600;
    padding: .7em 1.4em;
}

.profile-content {
    display: flex;
    margin-top: 30px;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 24px;
    flex-shrink: 0;
    background-color: #f5f7fa;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.google-icon {
    margin-right: 8px;
    margin-bottom: 0px!important;
    width: 22px!important;
    height: 22px!important;
}

.stars {
    color: #f39c12;
    margin-right: 8px;
    letter-spacing: 2px;
}

.rating-number {
    color: #666;
    font-size: 14px;
}

.dentist-name {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 4px 0;
    color: #2c3e50;
}

.dentist-type {
    font-size: 16px;
    color: #666;
    margin: 0 0 16px 0;
}

.dentist-description {
    margin-bottom: 16px;
    line-height: 1.6;
    color: #4a5568;
}

.best-for {
    margin-bottom: 16px;
}

.best-for-label {
    font-weight: bold;
    color: #2c3e50;
}

.trait-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.trait-tag {
    background-color: #edf2f7;
    color: #4a5568;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

.locations {
    margin-top: 20px;
}

.loc-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
    color: #4a5568;
}

.location-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.location-badge {
    font-size: 12px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
    display: inline-block;
}

.location-badge.hamilton {
    background-color: rgba(0, 160, 208, 0.15);
    color: #00a0d0;
}

.location-badge.brighton {
    background-color: rgba(0, 173, 76, 0.15);
    color: #00ad4c;
}

.location-badge.burpengary {
    background-color: rgba(205, 55, 65, 0.15);
    color: #cd3741;
}

.location-badge.sandstone-point {
    background-color: rgba(243, 203, 36, 0.15);
    color: #4a5568;
}

.location-badge:hover {
    opacity: 0.9;
}

.profile-actions {
    margin-top: 24px;
}

.about-btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    font-weight: bold;
    padding: 10px 28px;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 14px;
}

.about-btn:hover {
    background-color: #2980b9;
}

/* DISC disclaimer */
.disc-disclaimer {
    margin-top: 40px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.disc-disclaimer h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #2c3e50;
}

.disc-disclaimer p {
    margin-bottom: 15px;
    color: #4a5568;
    line-height: 1.6;
}

.disc-disclaimer ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.disc-disclaimer li {
    margin-bottom: 5px;
    color: #4a5568;
}

.restart-button-container {
    text-align: center;
    margin-top: 30px;
}

.dental-disc-restart-btn {
    background-color: #95a5a6;
    margin-top: 20px;
}

.dental-disc-restart-btn:hover {
    background-color: #7f8c8d;
}

/* For mobile screens */
@media (max-width: 768px) {
    .dental-disc-quiz,
    .dental-disc-result {
        padding: 20px;
        border-radius: 12px;
    }
    
    .option-content {
        padding: 12px 15px;
    }
    
    .option-text {
        font-size: 14px;
    }
    
    .dental-disc-navigation {
        flex-direction: column-reverse;
        gap: 15px;
    }
    
    .dental-disc-btn {
        width: 100%;
        padding: 10px;
    }
    
    .profile-content {
        flex-direction: column;
        margin-top: 50px;
    }
    
    .profile-image {
        margin: 0 auto 20px;
        width: 100px;
        height: 100px;
    }
    
    .profile-badge {
        top: 15px;
        left: 15px;
    }
    
    .best-match-badge, .match-percentage {
        top: 15px;
        right: 15px;
        font-size: 10px;
        padding: 4px 10px;
    }
    
    .option-type {
        font-size: 12px;
        width: 24px;
        height: 24px;
    }
    
    .location-badge {
        font-size: 10px;
        max-width: 100px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* DISC letter badges style */
.disc-letter {
    display: inline-block;
    width: 2em;
    height: 2em;
    line-height: 2em;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
    color: #fff;
    margin-right: 0.5em;
}
.disc-letter.D { background-color: #e74c3c; }
.disc-letter.I { background-color: #f1c40f; }
.disc-letter.S { background-color: #3498db; }
.disc-letter.C { background-color: #2ecc71; }
