/* * Recosint Intelligence Suite - Gold Standard Styles 
 * Version: 2.1.0 (Strict Recosint Palette)
 */

/* --- Variables for Reference ---
   Red: #dc143c
   Dark: #2f2f2f
   Light: #f8f8f8
   Text Dark: #111111
   Text Light: #ffffff
*/

/* --- Main Container --- */
.recosint-tool-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 100%;
    margin-bottom: 20px;
    color: #111111; /* Recosint Text on Light */
}

.recosint-tool-header h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #111111; /* Recosint Text */
    font-size: 1.25rem;
    border-bottom: 2px solid #dc143c; /* Recosint Red Accent */
    padding-bottom: 10px;
    display: inline-block;
}

.recosint-tool-header {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

/* --- Input Group --- */
.recosint-input-wrapper {
    margin-bottom: 15px;
}

.recosint-target-input,
.recosint-mode-select,
.recosint-algo-select,
.recosint-length-input {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    background: #ffffff;
    color: #111111;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.recosint-target-input:focus,
.recosint-mode-select:focus {
    border-color: #dc143c; /* Recosint Red */
    box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.1);
}

.recosint-file-input {
    background: #f8f8f8; /* Recosint Light Background */
    cursor: pointer;
    color: #111111;
}

/* --- Buttons --- */
.recosint-scan-btn {
    background-color: #dc143c; /* Recosint Red */
    color: #ffffff; /* Text on Dark */
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.recosint-scan-btn:hover {
    background-color: #2f2f2f; /* Recosint Dark Background on Hover */
}

.recosint-scan-btn:active {
    transform: translateY(1px);
}

.recosint-scan-btn:disabled {
    background-color: #e0e0e0;
    color: #888;
    cursor: not-allowed;
}

/* --- Result Area --- */
.recosint-results-area {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* --- Reports & Tables --- */
.recosint-report {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #111111;
}

.recosint-result-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

.recosint-result-table th,
.recosint-result-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.recosint-result-table th {
    background-color: #2f2f2f; /* Recosint Dark Background */
    color: #ffffff; /* Text on Dark */
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recosint-result-table tr:nth-child(even) {
    background-color: #f8f8f8; /* Recosint Light Background */
}

.recosint-result-table tr:hover {
    background-color: #f0f0f0;
}

/* --- Feature: Social Media Grid --- */
.recosint-social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.recosint-social-card {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.recosint-social-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-color: #dc143c; /* Recosint Red */
}

/* --- Feature: Tabs --- */
.recosint-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
    scrollbar-width: thin;
}

.recosint-tab {
    padding: 8px 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: #777;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s;
}

.recosint-tab:hover {
    color: #dc143c; /* Recosint Red */
}

.recosint-tab.active {
    color: #dc143c; /* Recosint Red */
    border-bottom-color: #dc143c;
}

/* --- Loader --- */
.recosint-loader {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111111;
    font-style: italic;
    margin-top: 15px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #dc143c; /* Recosint Red */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Status Colors & Utilities --- */
.recosint-success { color: #27ae60; font-weight: 600; }
.recosint-warning { color: #e67e22; font-weight: 600; }
.recosint-danger  { color: #dc143c; font-weight: 600; } /* Recosint Red */

.recosint-error {
    background: #fdf2f2;
    color: #dc143c; /* Recosint Red */
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #fadbd8;
    margin-top: 15px;
}

/* --- Dark Mode Code Blocks --- */
.recosint-code-block {
    background: #2f2f2f; /* Recosint Dark */
    color: #ffffff; /* Text on Dark */
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    overflow-x: auto;
}

/* --- Leaflet Map Fix --- */
.leaflet-container {
    z-index: 1;
    font-family: inherit;
    border: 1px solid #e0e0e0;
}
