/**
 * CCS Tools — Shared Styles
 *
 * Unified CSS for all 11 search tool pages.
 * Each tool sets its own colors via CSS custom properties:
 *   :root { --ccs-primary: #e74c3c; --ccs-primary-dark: #c0392b; }
 *
 * Replaces per-tool prefixed classes (vs-hero, pi-hero, ps-hero, etc.)
 * with a single unified prefix: ccs-tool-
 */

/* ===== THEME OVERRIDES ===== */
.ccs-tool-page #content::before,
.ccs-tool-page .site-content::before,
.ccs-tool-page .page-header {
    display: none !important;
}
.ccs-tool-page .site-content {
    margin-top: 0 !important;
    display: block !important;
}

/* ===== HERO ===== */
.ccs-tool-hero {
    background: linear-gradient(135deg, var(--ccs-primary), var(--ccs-primary-dark));
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-top: -10px;
}
.ccs-tool-hero h1 {
    font-size: 36px;
    margin: 0 0 10px 0;
    font-weight: bold;
}
.ccs-tool-hero p {
    font-size: 18px;
    margin: 0;
    opacity: 0.95;
}

/* ===== FORM CONTAINER ===== */
.ccs-tool-form-container {
    max-width: 600px;
    margin: -40px auto 40px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    position: relative;
    z-index: 10;
}
.ccs-tool-form-container h2 {
    color: var(--ccs-primary);
    font-size: 24px;
    margin: 0 0 10px 0;
    text-align: center;
}
.ccs-tool-form-container .subtitle {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin-bottom: 25px;
}

/* ===== FORM GROUP ===== */
.ccs-tool-form-group {
    margin-bottom: 20px;
}
.ccs-tool-form-group label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}
.ccs-tool-form-group input[type="text"],
.ccs-tool-form-group select {
    width: 100% !important;
    padding: 15px !important;
    border: 2px solid #888 !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    transition: border-color 0.3s !important;
    box-sizing: border-box !important;
    background-color: #fff !important;
}
.ccs-tool-form-group input[type="text"]:focus,
.ccs-tool-form-group select:focus {
    border-color: var(--ccs-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(var(--ccs-primary-rgb, 0,0,0), 0.1) !important;
}
.ccs-tool-form-group input[type="text"]::placeholder {
    color: #999 !important;
}

/* ===== SUBMIT BUTTON ===== */
.ccs-tool-submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--ccs-primary), var(--ccs-primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
}
.ccs-tool-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}
.ccs-tool-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== LOADING SPINNER ===== */
@keyframes ccs-tool-spin {
    to { transform: rotate(360deg); }
}
.ccs-tool-loading-spinner {
    display: none;
    text-align: center;
    margin-top: 15px;
}
.ccs-tool-loading-spinner .spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #ddd;
    border-top-color: var(--ccs-primary);
    border-radius: 50%;
    animation: ccs-tool-spin 1s linear infinite;
}
.ccs-tool-loading-spinner p {
    color: #555;
    margin-top: 10px;
    font-size: 14px;
}

/* ===== SHARE ROW ===== */
.ccs-tool-share-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
.ccs-tool-share-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}
.ccs-tool-share-btn:hover {
    background: #f8f9fa;
    border-color: var(--ccs-primary);
    color: var(--ccs-primary);
}

/* ===== INFO SECTION ===== */
.ccs-tool-info-section {
    max-width: 900px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}
.ccs-tool-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.ccs-tool-info-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}
.ccs-tool-info-card i {
    font-size: 36px;
    color: var(--ccs-primary);
    margin-bottom: 15px;
}
.ccs-tool-info-card h3 {
    color: #333;
    font-size: 18px;
    margin: 0 0 10px 0;
}
.ccs-tool-info-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* ===== RELATED TOOLS ===== */
.ccs-tool-related {
    background: var(--ccs-light-bg, #f8f9fa);
    padding: 40px 20px;
    text-align: center;
    border-top: 2px solid var(--ccs-primary);
}
.ccs-tool-related h3 {
    color: #333;
    font-size: 24px;
    margin: 0 0 10px 0;
}
.ccs-tool-related .subtitle {
    color: #666;
    margin-bottom: 25px;
}
.ccs-tool-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}
.ccs-tool-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: left;
    transition: all 0.3s;
    text-decoration: none;
    border: 2px solid transparent;
}
.ccs-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-color: var(--ccs-primary);
}
.ccs-tool-card i {
    font-size: 28px;
    color: var(--ccs-primary);
    margin-bottom: 10px;
    display: block;
}
.ccs-tool-card h4 {
    color: #333;
    font-size: 14px;
    margin: 0 0 6px 0;
}
.ccs-tool-card p {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

/* ===== CTA SECTION ===== */
.ccs-tool-cta {
    background: #fff;
    padding: 50px 20px;
    text-align: center;
}
.ccs-tool-cta h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 15px;
}
.ccs-tool-cta > p {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.ccs-tool-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.ccs-tool-cta-btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    text-transform: uppercase;
    transition: all 0.3s;
}
.ccs-tool-cta-btn.primary {
    background: var(--ccs-primary);
    color: #fff !important;
}
.ccs-tool-cta-btn.primary:hover {
    background: var(--ccs-primary-dark);
    transform: translateY(-2px);
}
.ccs-tool-cta-btn.secondary {
    background: #3498db;
    color: #fff !important;
}
.ccs-tool-cta-btn.secondary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* ===== TABS (inspection_status) ===== */
.ccs-tool-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}
.ccs-tool-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    font-size: 14px;
}
.ccs-tool-tab.active {
    color: var(--ccs-primary);
    border-bottom-color: var(--ccs-primary);
}
.ccs-tool-tab:hover {
    color: var(--ccs-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .ccs-tool-hero {
        padding: 40px 15px;
    }
    .ccs-tool-hero h1 {
        font-size: 28px;
    }
    .ccs-tool-form-container {
        margin: -30px 15px 30px 15px;
        padding: 20px;
    }
    .ccs-tool-info-grid {
        grid-template-columns: 1fr;
    }
    .ccs-tool-cards {
        flex-direction: column;
        align-items: center;
    }
    .ccs-tool-card {
        max-width: 100%;
        width: 100%;
    }
    .ccs-tool-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .ccs-tool-cta-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}
