/* Certificate Checker Plugin Styles */

.certificate-checker-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cc-logo {
    display: block;
    margin: 0 auto 14px auto;
    max-width: 90px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(26, 84, 144, 0.12);
    background: white;
    padding: 6px;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.cc-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(26, 84, 144, 0.15);
}

.cc-title {
    color: #225a96;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: center;
}

.cc-description {
    color: #054609;
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
    background: #f0fff5;
    padding: 12px 15px;
    border-left: 4px solid #55c797;
    border-radius: 4px;
}

.cc-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cc-search-box input {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border: 1px solid #cfe0f7;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.cc-search-box input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.cc-search-box button {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 200ms ease;
    white-space: nowrap;
}

.cc-search-box button:hover {
    background: #0056b3;
}

.cc-search-box button:active {
    transform: scale(0.98);
}

.cc-results {
    margin-top: 20px;
}

.cc-result-item {
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid #007bff;
    margin-bottom: 10px;
    border-radius: 4px;
    transition: background 200ms ease;
}

.cc-result-item:hover {
    background: #f0f8ff;
}

.cc-result-item strong {
    color: #225a96;
    font-size: 16px;
}

.cc-no-results {
    color: #c77a7a;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.cc-loading {
    text-align: center;
    color: #666;
    padding: 20px;
}

.cc-pdf-container {
    margin-top: 10px;
}

.cc-pdf-loading {
    color: #007bff;
    font-style: italic;
    padding: 10px;
    text-align: center;
}

.cc-pdf-frame {
    width: 100%;
    height: 80vh;
    max-height: 500px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
}

/* Responsive design */
@media (max-width: 768px) {
    .certificate-checker-container {
        padding: 15px;
    }

    .cc-search-box {
        flex-direction: column;
    }

    .cc-search-box input,
    .cc-search-box button {
        width: 100%;
    }

    .cc-pdf-frame {
        max-height: 400px;
    }

    .cc-title {
        font-size: 18px;
    }

    .cc-description {
        font-size: 14px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .certificate-checker-container {
        background: #2d2d2d;
        color: #f0f0f0;
    }

    .cc-title {
        color: #64b5f6;
    }

    .cc-result-item {
        background: #3d3d3d;
        border-left-color: #64b5f6;
    }

    .cc-result-item:hover {
        background: #454545;
    }

    .cc-search-box input {
        background: #3d3d3d;
        color: #f0f0f0;
        border-color: #555;
    }

    .cc-description {
        background: #1a2a1a;
        color: #90ee90;
    }
}
