/* =================================================================
   APK PROFESSIONAL SECTIONS STYLING V2
   ================================================================= */

/* --- 1. Safety Scorecard (Redesigned) --- */
.scorecard-grid { 
    display: grid; 
    grid-template-columns: 150px 1fr; 
    gap: 30px; 
    align-items: center; 
    margin-bottom: 20px; 
}
.score-dial { 
    text-align: center; 
}
.score-dial-inner {
    width: 120px; 
    height: 120px; 
    border-radius: 50%;
    display: grid; 
    place-items: center;
    background: conic-gradient(#16a34a var(--score, 0%), #e2e8f0 var(--score, 0%));
    position: relative;
}
.score-dial-inner::before { /* Inner white circle */
    content: ''; 
    position: absolute; 
    background: #fff;
    width: 100px; 
    height: 100px; 
    border-radius: 50%;
}
.score-value { 
    position: relative; 
    font-family: 'Outfit', sans-serif; 
    font-weight: 800; 
    font-size: 36px; 
    color: #0f172a; 
}
.score-value span { 
    font-size: 16px; 
    color: #64748b; 
}
.score-label { 
    font-size: 12px; 
    font-weight: 600; 
    color: #64748b; 
    margin-top: 10px; 
}
.score-checklist ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}
.score-checklist li { 
    font-size: 16px; 
    font-weight: 600; 
    margin-bottom: 15px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}
.score-checklist li.pass { 
    color: #166534; 
}
.score-checklist li.fail { 
    color: #991b1b; 
}

/* --- 2. Warning Box (Enhanced) --- */
.apk-warning-box .warning-header { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 10px; 
}
.apk-warning-box .warning-header i { 
    font-size: 24px; 
    color: #ef4444; 
}
.apk-warning-box .warning-header h3 { 
    margin: 0; 
    font-size: 18px; 
    color: #991b1b; 
}

/* --- 3. Top Games Grid --- */
.games-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; 
}
.game-card { 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
    padding: 15px; 
    text-align: center; 
}
.game-name { 
    font-weight: 700; 
    color: #0f172a; 
}
.game-chance { 
    font-size: 14px; 
    font-weight: 600; 
    color: #16a34a; 
    margin: 5px 0; 
}
.game-volatility { 
    font-size: 11px; 
    font-weight: 600; 
    padding: 2px 6px; 
    border-radius: 8px; 
    display: inline-block; 
}
.volatility-low { 
    background: #dcfce7; 
    color: #166534; 
}
.volatility-medium { 
    background: #fffbeb; 
    color: #b45309; 
}
.volatility-high { 
    background: #fee2e2; 
    color: #991b1b; 
}

/* --- 4. Customer Support --- */
.support-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 15px; 
}
.support-card { 
    display: block; 
    text-decoration: none; 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    border-radius: 12px; 
    padding: 20px; 
    text-align: center; 
    transition: all 0.2s ease; 
}
.support-card:hover { 
    border-color: #f59e0b; 
    transform: translateY(-3px); 
}
.support-card i { 
    font-size: 28px; 
    color: #f59e0b; 
    margin-bottom: 10px; 
}
.support-card h3 { 
    font-size: 16px; 
    margin: 0 0 5px; 
    color: #0f172a; 
}
.support-card p { 
    font-size: 13px; 
    color: #64748b; 
    margin: 0; 
}
.support-card .support-action { 
    font-weight: 600; 
    color: #f59e0b; 
    margin-top: 10px; 
    display: block; 
}
.support-card .support-status { 
    font-weight: 600; 
    color: #334155; 
    margin-top: 10px; 
    display: block; 
}

/* =================================================================
   UNIVERSAL APP COMPARISON TOOL STYLING (FINAL & CONFLICT-FREE)
   ================================================================= */

.comparison-tool-universal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.comparison-tool-universal .comparison-inputs-wrapper {
    display: flex;
    gap: 40px; /* "VS" ke liye space */
    width: 100%;
    align-items: center;
    justify-content: center;
}

.comparison-tool-universal .compare-box {
    flex: 1;
    position: relative;
}

.comparison-tool-universal .vs-divider {
    color: #94a3b8;
    font-weight: 700;
    font-size: 18px;
}

.comparison-tool-universal .compare-search-input {
    width: 100%;
    height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 15px;
    box-sizing: border-box;
}

.comparison-tool-universal .compare-btn-universal {
    height: 48px;
    padding: 0 40px;
    border: none;
    background: #f59e0b;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.comparison-results-wrapper {
    width: 100%;
    margin-top: 15px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .comparison-tool-universal .comparison-inputs-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    .comparison-tool-universal .vs-divider {
        display: none;
    }
}

/* --- 6. Screenshots Slider --- */
.screenshots-slider { 
    padding-bottom: 40px; 
}
.screenshots-slider .swiper-slide img { 
    width: 100%; 
    height: auto; 
    border-radius: 8px; 
    border: 1px solid #e2e8f0; 
}
.screenshots-slider .swiper-button-next, .screenshots-slider .swiper-button-prev { 
    color: #0f172a; 
}

/* --- 7. User Reviews (Comments) --- */
.comment-list { 
    list-style: none; 
    padding: 0; 
}
.comment-body { 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
    padding: 15px; 
    margin-bottom: 15px; 
}
.comment-author .fn { 
    font-weight: 700; 
}
.comment-form input[type="text"], .comment-form textarea { 
    width: 100%; 
    padding: 10px; 
    border: 1px solid #cbd5e1; 
    border-radius: 8px; 
    margin-bottom: 10px; 
}
.comment-form .submit { 
    background: #f59e0b; 
    color: #fff; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 8px; 
    font-weight: 600; 
}

/* --- 8. FAQ Accordion Styling --- */
.faq-accordion { max-width: 800px; margin: 0 auto; border-top: 1px solid #eee; }
.faq-item { border-bottom: 1px solid #eee; }
.faq-question {
    font-family: 'Outfit', sans-serif; width: 100%; text-align: left; background: none;
    border: none; padding: 20px 10px; font-size: 18px; font-weight: 600;
    color: #333; cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; transition: color 0.2s ease;
}
.faq-question:hover { color: #f59e0b; }
.faq-question::after {
    content: '+'; font-size: 24px; font-weight: 300; color: #f59e0b;
    transition: transform 0.3s ease;
}
.faq-item.open .faq-question { color: #f59e0b; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out;
    padding: 0 10px;
}
.faq-answer p {
    padding-bottom: 20px; font-size: 16px; line-height: 1.7; color: #334155;
}
.faq-item.open .faq-answer { max-height: 300px; }

/* --- 9. Screenshots Gallery (Aspect Ratio Fix) --- */
.screenshots-slider .swiper-slide {
    aspect-ratio: 9 / 16; /* Portrait ratio */
    background-color: #f1f5f9;
}
.screenshots-slider .swiper-slide img {
    width: 100%; height: 100%; object-fit: cover;
}

/* =================================================================
   USER REVIEWS & COMMENT FORM STYLING (V7 - FINAL WALKER DESIGN)
   ================================================================= */

/* --- 1. Average Rating Summary Box --- */
.average-rating-summary {
    display: flex; align-items: center; gap: 15px;
    background-color: #f8fafc; border: 1px solid #e2e8f0;
    padding: 20px; border-radius: 12px; margin-bottom: 40px;
}
.average-rating-value {
    font-size: 42px; font-weight: 800; color: #0f172a; line-height: 1;
}
.total-ratings-text {
    font-size: 13px; color: #64748b; margin-top: 5px;
}

/* --- 2. Comment List (Bubble Style) --- */
.comments-area .comments-title {
    font-size: 22px; margin-bottom: 20px;
}
.comment-list {
    list-style: none; padding: 0; margin: 0 0 40px 0;
}
.comment-list .comment {
    padding: 0; margin-bottom: 15px;
}
.comment-list .comment-body {
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 12px; padding: 15px 20px; position: relative;
}
.comment-list ol, .comment-list ul.children { /* Remove numbering and style replies */
    list-style: none; padding-left: 40px; margin-top: 15px;
}
.comment-author .avatar {
    width: 32px; height: 32px; border-radius: 50%; margin-right: 10px; float: left;
}
.comment-author .fn {
    font-weight: 700; font-size: 15px;
}
.comment-metadata {
    font-size: 12px; color: #64748b; clear: both;
}
.comment-metadata a { color: #64748b; }
.comment-user-rating { margin: 8px 0; }
.comment-content { margin-top: 10px; font-size: 16px; line-height: 1.7; clear: both; }
.reply a {
    font-size: 13px; font-weight: 600; color: #f59e0b; text-decoration: none;
}

/* --- 3. Comment Form Structure --- */
#respond { margin-top: 40px; }
#respond h3 { font-size: 22px; margin-bottom: 10px; }
#commentform { display: flex; flex-direction: column; }
.comment-form-rating { order: 1; }
.comment-form-fields-grid { order: 2; }
.comment-form-comment { order: 3; }
.comment-form-cookies-consent { order: 4; }
.form-submit { order: 5; }

/* --- 4. Name and Email Grid --- */
.comment-form-fields-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px;
}
.comment-form-fields-grid .comment-form-author,
.comment-form-fields-grid .comment-form-email { margin: 0; }

/* --- 5. Form Fields Styling --- */
.comment-form label {
    display: block; font-weight: 600; margin-bottom: 8px; color: #334155;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%; padding: 12px 15px; border: 1px solid #cbd5e1;
    border-radius: 8px; font-size: 16px; box-sizing: border-box;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    border-color: #f59e0b; outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* --- 6. Interactive Star Rating Input --- */
.comment-form-rating { margin-bottom: 20px; }
.star-rating-input { display: flex; align-items: center; gap: 15px; }
.star-rating-input .stars { font-size: 24px; color: #e2e8f0; cursor: pointer; position: relative; }
.star-rating-input .stars i { transition: color 0.1s ease; }
.star-rating-input .stars i.hover { color: #fde047; }
.star-rating-input .stars i.selected { color: #f59e0b; }
.rating-live-value { font-size: 18px; font-weight: 700; color: #0f172a; min-width: 40px; }

/* --- 7. Submit Button --- */
.form-submit .submit {
    background-color: #f59e0b; color: #fff; border: none;
    padding: 12px 30px; border-radius: 8px; font-weight: 600;
    font-size: 16px; cursor: pointer;
}

/* --- 8. Responsive --- */
@media (max-width: 600px) {
    .comment-form-fields-grid {
        grid-template-columns: 1fr;
    }
}

/* =================================================================
   RELATED APPS GRID STYLING (FINAL VERSION)
   ================================================================= */

.related-apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Desktop: 4 columns */
    gap: 20px;
}

/* We can reuse the detailed card styling from homepage-apk.css */
/* No extra styling needed for the card itself if homepage-apk.css is enqueued */

/* --- Responsive --- */
@media (max-width: 768px) {
    .related-apps-grid {
        grid-template-columns: repeat(2, 1fr); /* Mobile: 2 columns */
        gap: 15px;
    }
}

/* =================================================================
   APP COMPARISON TABLE STYLING (FINAL VERSION)
   ================================================================= */

/* --- 1. Responsive Wrapper for Mobile --- */
.pg-comparison-table-wrapper {
    overflow-x: auto; /* Mobile par horizontal scroll enable karega */
    margin-top: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

/* --- 2. Main Table Structure --- */
.pg-comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Taake mobile par bhi columns khule nazar aayein */
}

/* --- 3. Table Cells (Header and Data) --- */
.pg-comparison-table th,
.pg-comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}
.pg-comparison-table tbody tr:last-child td {
    border-bottom: none; /* Aakhri row se border hatayein */
}

/* --- 4. Table Header Styling --- */
.pg-comparison-table thead th {
    background-color: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}
.app-header-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.app-compare-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    object-fit: cover;
}
.app-compare-title {
    color: #f59e0b;
    font-weight: 700;
}

/* --- 5. Table Body Styling --- */
.pg-comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: #475569;
    background-color: #f8fafc;
}
.pg-comparison-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}
.pg-comparison-table tbody tr:nth-child(even) td:first-child {
    background-color: #f1f5f9;
}