/* WHOIS101 Plugin - Minimal Modern Styles */

/* Reset and base styles */
.whois101-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Search Form Styles */
.whois101-search-form {
    max-width: 600px;
    margin: 0 auto;
}

.whois101-search-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.whois101-search-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    outline: none;
}

.whois101-search-form .btn {
    padding: 12px 24px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.whois101-search-form .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.whois101-search-form .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-1px);
}

/* Homepage Hero - Enhanced Bootswatch Style */
.whois101-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 40px;
}

.whois101-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.whois101-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.whois101-hero .whois101-search-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* Enhanced Search Form Styling */
.whois101-search-form .input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
}

.whois101-search-form .form-control {
    border: 1px solid #dee2e6;
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
}

.whois101-search-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.whois101-search-form .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.whois101-search-form .btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0 !important;
}

/* Popular Searches Styling */
.badge {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.badge.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5c636a 100%) !important;
}

/* Cards */
.whois101-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    overflow: hidden;
}

.whois101-card-header {
    background: #f8f9fa;
    padding: 16px 24px;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #495057;
}

.whois101-card-body {
    padding: 24px;
}

/* Tables */
.whois101-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.whois101-table th,
.whois101-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.whois101-table th {
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
    width: 200px;
}

.whois101-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Status badges */
.whois101-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
}

.whois101-status.active {
    background-color: #d1ecf1;
    color: #0c5460;
}

.whois101-status.success {
    background-color: #d4edda;
    color: #155724;
}

/* Error and alert messages */
.whois101-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-bottom: 24px;
}

.whois101-warning {
    background-color: #fff3cd;
    color: #856404;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    margin-bottom: 24px;
}

.whois101-success {
    background-color: #d4edda;
    color: #155724;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin-bottom: 24px;
}

/* Welcome section */
.whois101-welcome {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 40px 0;
}

.whois101-welcome h2 {
    color: #495057;
    margin-bottom: 16px;
    font-weight: 600;
}

.whois101-welcome p {
    color: #6c757d;
    margin-bottom: 32px;
    font-size: 1.125rem;
}

.whois101-examples a {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px;
    background: white;
    color: #0d6efd;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    font-weight: 500;
    transition: all 0.3s ease;
}

.whois101-examples a:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

/* Loading states */
.whois101-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.whois101-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0d6efd;
    border-radius: 50%;
    animation: whois101-spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes whois101-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .whois101-hero {
        padding: 60px 20px;
        margin: 0 -15px 40px;
        border-radius: 0;
    }
    
    .whois101-hero h1 {
        font-size: 2.5rem;
    }
    
    .whois101-hero p {
        font-size: 1.125rem;
    }
    
    .whois101-hero .whois101-search-form {
        margin: 0 20px;
        padding: 24px;
    }
    
    .whois101-card-body {
        padding: 16px;
    }
    
    .whois101-table th,
    .whois101-table td {
        padding: 8px 12px;
        font-size: 0.875rem;
    }
    
    .whois101-table th {
        width: auto;
        min-width: 120px;
    }
    
    .whois101-welcome {
        padding: 40px 16px;
        margin: 20px -15px;
        border-radius: 0;
    }
}

/* Utility classes */
.whois101-text-center {
    text-align: center;
}

.whois101-mb-0 {
    margin-bottom: 0;
}

.whois101-mb-1 {
    margin-bottom: 8px;
}

.whois101-mb-2 {
    margin-bottom: 16px;
}

.whois101-mb-3 {
    margin-bottom: 24px;
}

.whois101-mb-4 {
    margin-bottom: 32px;
}

.whois101-font-mono {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.9em;
}

/* Theme compatibility */
.whois101-container * {
    box-sizing: border-box;
}

/* Ensure proper spacing in different themes */
.whois101-hero,
.whois101-card,
.whois101-welcome {
    clear: both;
}

/* Override theme conflicts */
.whois101-search-form input,
.whois101-search-form button {
    font-family: inherit;
    line-height: 1.5;
}

.whois101-table {
    border-collapse: collapse;
    width: 100%;
}

.whois101-table th,
.whois101-table td {
    border: none;
    border-bottom: 1px solid #e9ecef;
}

/* Domain Analysis Styles */
.domain-metrics {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.metric-box {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-box:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

/* Progress bars */
.progress {
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    transition: width 1s ease-in-out;
}

/* Related domains */
.related-domains .btn {
    margin: 2px;
    transition: all 0.3s ease;
}

.related-domains .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Keywords */
.keyword-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 2px;
    display: inline-block;
    transition: all 0.3s ease;
}

.keyword-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* SEO Metrics */
.seo-metric {
    margin-bottom: 16px;
}

.seo-metric .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.seo-metric .progress {
    height: 6px;
    margin-bottom: 4px;
}

.seo-metric small {
    font-weight: 500;
}

/* Availability check */
.availability-status {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.availability-status.available {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.availability-status.registered {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Card hover effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Badge improvements */
.badge {
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%) !important;
    color: #000 !important;
}
/* H
omepage Specific Enhancements */
.whois101-homepage .container-fluid {
    position: relative;
    overflow: hidden;
}

.whois101-homepage .container-fluid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* Enhanced Feature Cards */
.whois101-homepage .card-body {
    position: relative;
    overflow: hidden;
}

.whois101-homepage .card-body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.whois101-homepage .card:hover .card-body::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Enhanced Button Styles */
.btn-outline-primary {
    border: 2px solid #0d6efd;
    color: #0d6efd;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border-color: #0b5ed7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(13, 110, 253, 0.3);
}

/* Popular Searches Animation */
.whois101-homepage .badge {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.whois101-homepage .badge:nth-child(1) { animation-delay: 0.1s; }
.whois101-homepage .badge:nth-child(2) { animation-delay: 0.2s; }
.whois101-homepage .badge:nth-child(3) { animation-delay: 0.3s; }
.whois101-homepage .badge:nth-child(4) { animation-delay: 0.4s; }
.whois101-homepage .badge:nth-child(5) { animation-delay: 0.5s; }

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

/* Responsive Enhancements */
@media (max-width: 768px) {
    .whois101-homepage .display-4 {
        font-size: 2.5rem;
    }
    
    .whois101-homepage .lead {
        font-size: 1.1rem;
    }
    
    .whois101-homepage .input-group-lg .form-control {
        font-size: 1rem;
    }
    
    .whois101-homepage .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Loading Animation for Search */
.whois101-search-form .btn-primary.loading {
    position: relative;
    color: transparent;
}

.whois101-search-form .btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Shadow Effects */
.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

.shadow {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12) !important;
}

.shadow-lg {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Improved Focus States */
.form-control:focus,
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Category Badge Hover Effects */
.badge.bg-secondary:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%) !important;
    transform: translateY(-1px) scale(1.05);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .whois101-homepage .container-fluid {
        background: white !important;
        color: black !important;
    }
    
    .whois101-homepage .badge {
        border: 1px solid #ccc !important;
        background: white !important;
        color: black !important;
    }
}