/* Domain Analysis Widget Styles */

/* Security Analysis Card */
.security-analysis-card {
    position: relative;
    width: 100%;
    margin-left: 0;
    padding: 24px;
    margin-top: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgb(0 0 0 / 15%);
    background: #fff;
}

.card-header {
    background: #fff;
    border-bottom: none;
    padding: 0 0 15px 0;
}

.card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.card-header h3 i {
    font-size: 18px;
    color: #1ab3a2;
}

.card-body {
    padding: 0;
}

/* Security Analysis Card */
.assessment-content p {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 16px 0;
    text-align: justify;
}

.security-indicators {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.indicator {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    display: inline-block;
}

.indicator.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.indicator.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.indicator.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Domain Analysis Card Styles */
.domain-analysis-card {
    position: relative;
    width: 100%;
    margin-left: 0;
    padding: 24px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgb(0 0 0 / 15%);
    background: #fff;
}

/* Security Risk Section */
.security-risk-section {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #fafafa 100%);
    border: 1px solid #f0e0e0;
    border-left: 4px solid #ff6b6b;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.1);
}

.risk-icon {
    font-size: 18px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

.risk-content h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.risk-score-display {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.score-number {
    font-size: 20px;
    font-weight: bold;
    color: #666;
}

.score-divider {
    font-size: 16px;
    color: #999;
}

.risk-label {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: #fff;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 500;
    border-radius: 12px;
    margin-left: 10px;
    box-shadow: 0 1px 3px rgba(255, 107, 107, 0.3);
}

.risk-date {
    color: #999;
    font-size: 12px;
    margin: 0 0 15px 0;
}

.security-advisory {
    background: linear-gradient(135deg, #fff8f8 0%, #fef5f5 100%);
    padding: 12px;
    border-left: 3px solid #ff6b6b;
    font-size: 13px;
    color: #666;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 1px 3px rgba(255, 107, 107, 0.1);
}

/* Privacy & Trackers Section */
.privacy-section {
    margin-bottom: 25px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.section-icon {
    font-size: 18px;
    color: #1ab3a2;
}

.section-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.tracker-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #fafafa 100%);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e0f2fe;
    border-left: 4px solid #1ab3a2;
    box-shadow: 0 2px 4px rgba(26, 179, 162, 0.1);
}

.tracker-count {
    text-align: center;
}

.count-number {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    line-height: 1;
}

.count-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.privacy-policy-badge {
    background: linear-gradient(135deg, #1ab3a2, #16a085);
    color: #fff;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(26, 179, 162, 0.3);
}

.tracker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #f8fdff 0%, #f8f9fa 100%);
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid #e8f4f8;
    border-left: 3px solid #1ab3a2;
}

.tracker-icon {
    font-size: 18px;
    color: #1ab3a2;
}

.tracker-info strong {
    display: block;
    color: #333;
    font-size: 14px;
}

.tracker-type {
    color: #666;
    font-size: 12px;
}

.tracker-note {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin: 10px 0 0 0;
}

/* Performance Section */
.performance-section {
    margin-bottom: 25px;
}

.performance-desc {
    color: #666;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.performance-score-circle {
    text-align: center;
    margin: 20px 0;
}

.score-circle {
    display: inline-flex;
    width: 100px;
    height: 100px;
    border: 5px solid #1ab3a2;
    border-radius: 50%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fffe 0%, #e8f8f7 100%);
    box-shadow: 0 4px 8px rgba(26, 179, 162, 0.2);
}

.score-big {
    font-size: 26px;
    font-weight: bold;
    color: #1ab3a2;
    line-height: 1;
}

.score-status {
    font-size: 12px;
    color: #999;
}

.performance-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.metric-box {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #f8fdff 0%, #f8f9fa 100%);
    border-radius: 6px;
    border: 1px solid #e8f4f8;
    transition: all 0.3s ease;
}

.metric-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 179, 162, 0.15);
    border-color: #1ab3a2;
}

.metric-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.metric-unit {
    font-size: 14px;
    color: #666;
}

.metric-status {
    font-size: 12px;
    color: #666;
}

.performance-message {
    background: linear-gradient(135deg, #f0fffe 0%, #e8f8f7 100%);
    color: #1ab3a2;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    border: 1px solid #1ab3a2;
    box-shadow: 0 2px 4px rgba(26, 179, 162, 0.1);
}

/* Geolocation Section */
.geolocation-section {
    margin-bottom: 25px;
}

.geo-desc {
    color: #666;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.country-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #fff8f0 0%, #f8f9fa 100%);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #f0e8d8;
    border-left: 4px solid #ffa726;
    box-shadow: 0 2px 4px rgba(255, 167, 38, 0.1);
}

.country-flag {
    font-size: 32px;
    color: #ffa726;
}

.country-details strong {
    display: block;
    font-size: 18px;
    color: #333;
    margin-bottom: 4px;
}

.city {
    color: #666;
    font-size: 14px;
}

.geo-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.geo-item {
    padding: 12px;
    background: linear-gradient(135deg, #fff8f0 0%, #f8f9fa 100%);
    border-radius: 6px;
    border: 1px solid #f0e8d8;
    transition: all 0.3s ease;
}

.geo-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(255, 167, 38, 0.15);
    border-color: #ffa726;
}

.geo-label {
    display: block;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.geo-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.maps-button {
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #6c757d;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.maps-button:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-color: #adb5bd;
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* DNS Section */
.dns-section {
    margin-bottom: 25px;
}

.dns-desc {
    color: #666;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.email-security {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f3e5f5 0%, #f8f9fa 100%);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e8d5ea;
    border-left: 4px solid #9c27b0;
    box-shadow: 0 2px 4px rgba(156, 39, 176, 0.1);
}

.email-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.security-badges {
    display: flex;
    gap: 10px;
}

.security-badge.active {
    color: #666;
    font-size: 13px;
}

.security-badge.inactive {
    color: #999;
    font-size: 13px;
}

.security-level {
    background: linear-gradient(135deg, #9c27b0, #8e24aa);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(156, 39, 176, 0.3);
}

.dns-records {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.dns-record {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
}

.dns-record:nth-child(1) { 
    background: linear-gradient(135deg, #f3e5f5 0%, #f8f8f8 100%); 
    border: 1px solid #e8d5ea;
}
.dns-record:nth-child(2) { 
    background: linear-gradient(135deg, #e8f5e8 0%, #f5f5f5 100%); 
    border: 1px solid #d4e8d4;
}
.dns-record:nth-child(3) { 
    background: linear-gradient(135deg, #fff8f0 0%, #fafafa 100%); 
    border: 1px solid #f0e8d8;
}
.dns-record:nth-child(4) { 
    background: linear-gradient(135deg, #f0f9ff 0%, #f0f0f0 100%); 
    border: 1px solid #e0f2fe;
}

.record-count {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.record-type {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.record-desc {
    font-size: 12px;
    color: #666;
}

/* WHOIS Section */
.whois-section {
    margin-bottom: 25px;
}

.domain-age-info {
    background: linear-gradient(135deg, #e8f5e8 0%, #f8f9fa 100%);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #d4e8d4;
    border-left: 4px solid #4caf50;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.1);
}

.age-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.age-text {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.trust-badge {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: #fff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.registration-date {
    color: #666;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.timeline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-start, .timeline-end {
    font-size: 12px;
    color: #666;
}

.timeline-bar {
    flex: 1;
    height: 3px;
    background: linear-gradient(to right, #ccc, #e0e0e0);
    border-radius: 2px;
}

.whois-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.whois-item {
    padding: 15px;
    background: linear-gradient(135deg, #e8f5e8 0%, #f8f9fa 100%);
    border-radius: 6px;
    border: 1px solid #d4e8d4;
    transition: all 0.3s ease;
}

.whois-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(76, 175, 80, 0.15);
    border-color: #4caf50;
}

.whois-label {
    display: block;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.whois-value strong {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}

.whois-value span {
    font-size: 12px;
    color: #666;
}

.raw-whois-button {
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.raw-whois-button:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-color: #adb5bd;
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Complaint Information Section */
.complaint-info {
    background: linear-gradient(135deg, #fff3e0 0%, #fafafa 100%);
    border: 1px solid #ffe0b2;
    border-left: 4px solid #ff9800;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.1);
}

.complaint-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.complaint-icon {
    font-size: 18px;
    color: #ff9800;
}

.complaint-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.complaint-text {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.complaint-contacts {
    background: linear-gradient(135deg, #fff8f0 0%, #f9f9f9 100%);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ffe0b2;
    box-shadow: 0 1px 3px rgba(255, 152, 0, 0.1);
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:first-child {
    justify-content: flex-start;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.contact-label {
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.contact-value {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .security-analysis-card,
    .domain-analysis-card {
        margin: 15px 5px;
        padding: 15px;
    }
    
    .card-header h3 {
        font-size: 15px;
        text-align: center;
    }
    
    .security-indicators {
        justify-content: center;
        gap: 8px;
    }
    
    .indicator {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .performance-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .geo-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .dns-records {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .whois-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .security-analysis-card,
    .domain-analysis-card {
        margin: 0 2px;
        padding: 12px;
    }
    
    .card-header h3 {
        font-size: 14px;
    }
    
    .performance-metrics,
    .dns-records {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 360px) {
    .security-analysis-card,
    .domain-analysis-card {
        margin: 0 1px;
        padding: 10px;
    }
    
    .card-header h3 {
        font-size: 13px;
    }
    
    .security-indicators {
        gap: 6px;
    }
    
    .indicator {
        font-size: 11px;
        padding: 4px 8px;
    }
}