/* ==========================================================================
   INDEX.PHP STYLES
   ========================================================================== */

@import url('/styles/shared.css');

/* SSR Summary tweaks */
.ssr-table .ssr-label {
    font-weight: 600;
    color: #1f2937;
}

.ssr-table .ssr-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ssr-table .ssr-ip-address {
    word-break: break-word;
}

/* Details Section */
.details-section {
    margin-top: 8px;
}

.modern-details {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.modern-summary {
    cursor: pointer;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.modern-summary::before {
    content: "📊";
    font-size: 1.1rem;
}

.nested-table-modern {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nested-table-modern th {
    background: #f1f5f9;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    width: 35%;
}

.nested-table-modern td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.nested-table-modern tr:last-child th,
.nested-table-modern tr:last-child td {
    border-bottom: none;
}

/* Loading Animation */
.loading-skeleton {
    display: inline-block;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    height: 16px;
    width: 120px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-skeleton-center {
    margin: 0 auto;
    display: block;
}

.loading-text {
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Tooltip Styles */
.tooltip-trigger {
    cursor: help;
    border-bottom: 1px dotted #6b7280;
    position: relative;
}

.tooltip {
    position: absolute;
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    width: 250px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.tooltip-trigger:hover .tooltip {
    opacity: 1;
    transform: translateY(0);
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 12px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #1f2937;
}

/* Map Styles */
.ip-map-container {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.ip-map {
    height: 300px;
    width: 100%;
    border-radius: 8px;
}

.map-placeholder {
    height: 200px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    border-radius: 8px;
    border: 2px dashed #e5e7eb;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 1rem;
}

.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #6b7280;
}

/* SEO Content - override for index */
.seo-content {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-table tr {
        padding: 0.625rem 0;
    }
    
    .modern-table td {
        padding: 0.2rem 0.875rem;
    }
    
    .field-name {
        font-size: 0.85rem;
    }
    
    .ip-value-modern {
        font-size: 0.8rem;
        padding: 6px 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .copy-btn {
        font-size: 0.7rem;
        padding: 2px 6px;
        margin-left: 0;
        align-self: flex-start;
    }
    
    .modern-details {
        padding: 0.625rem;
        margin: 0.375rem;
    }
    
    .nested-table-modern {
        font-size: 0.75rem;
    }
    
    .nested-table-modern th,
    .nested-table-modern td {
        padding: 0.375rem 0.625rem;
    }
    
}

@media (max-width: 640px) {
    .ssr-table .ssr-label,
    .ssr-table .ssr-value {
        display: block;
        width: 100%;
    }
    
    .ssr-table .ssr-value {
        margin-top: 0.35rem;
    }
    
    .ssr-table .ssr-value .copy-btn {
        margin-top: 0.4rem;
    }
}

@media (max-width: 480px) {
}

