/* Modern IP Banner Styles */
.modern-ip-banner-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 80px 0;
}

/* Background decorative elements */
.ip-banner-background-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.ip-banner-container {
    position: relative;
    z-index: 2;
}

.ip-banner-content-modern {
    text-align: center;
    color: white;
    max-width: 900px;
    margin: 0 auto;
}

/* IP Badge */
.ip-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 12px 24px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.ip-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.ip-badge span {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* IP main heading with gradient text */
.ip-main-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* IP description text */
.ip-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* IP Results Section */
.ip-results-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    margin-top: 40px;
}

.ip-results-header {
    text-align: center;
    margin-bottom: 30px;
}

.ip-results-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

/* IP Result Card */
.ip-result-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
}

.ip-result-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.ip-result-card.error {
    border-left: 4px solid #ef4444;
    text-align: center;
}

.ip-result-card.loading {
    text-align: center;
}

/* IP Header */
.ip-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ip-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.ip-main-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.ip-address {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ip-address:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ip-address::after {
    content: '📋 Click to copy';
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-top: 4px;
    font-weight: 400;
    letter-spacing: normal;
}

/* IP Details */
.ip-details {
    margin-bottom: 30px;
}

.ip-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.ip-detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ip-detail-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.detail-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.country-flag {
    width: 24px;
    height: 18px;
    border-radius: 4px;
    object-fit: cover;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    font-weight: 500;
}

.detail-value {
    font-size: 1rem;
    color: white;
    font-weight: 600;
    word-break: break-word;
}

/* IP Actions */
.ip-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Loading States */
.loading-content {
    padding: 40px 20px;
}

.loading-spinner {
    margin-bottom: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.loading-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* Error States */
.error-content {
    padding: 40px 20px;
}

.error-icon {
    color: #ef4444;
    margin-bottom: 20px;
}

.error-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.error-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 20px;
}

/* IP Features Grid */
.ip-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.ip-feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.ip-feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    color: white;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
}

.feature-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* IP trust message */
.ip-trust-message {
    display: flex;
    justify-content: center;
    align-items: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Quick Actions */
.ip-quick-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Button Loading State */
.ip-check-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ip-check-btn.loading {
    position: relative;
}

.ip-check-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

.notification.success {
    border-left: 4px solid #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

.notification.info {
    border-left: 4px solid #3b82f6;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-ip-banner-section {
        padding: 100px 0 60px 0;
        min-height: auto;
    }
    
    .ip-results-section {
        padding: 20px;
        margin: 0 12px 32px;
    }
    
    .ip-detail-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ip-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .ip-address {
        font-size: 1.5rem;
    }
    
    .ip-features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ip-feature-card {
        padding: 20px;
    }
    
    .ip-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ip-main-heading {
        font-size: 2rem;
    }
    
    .ip-description {
        font-size: 1.1rem;
    }
    
    .ip-results-section {
        padding: 15px;
    }
    
    .ip-result-card {
        padding: 20px;
    }
    
    .notification {
        left: 12px;
        right: 12px;
        max-width: none;
    }
}

/* Smooth animations */
.ip-banner-content-modern * {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ip-badge {
    animation-delay: 0.1s;
}

.ip-main-heading {
    animation-delay: 0.2s;
}

.ip-description {
    animation-delay: 0.3s;
}

.ip-results-section {
    animation-delay: 0.4s;
}

/* Enhanced focus states for accessibility */
.action-btn:focus,
.ip-check-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Service Section Styles for IP Checker */
.service-section {
    background: linear-gradient(135deg, rgba(46, 23, 121, 0.95), rgba(235, 43, 99, 0.95));
    position: relative;
    overflow: hidden;
}

.service-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.service-section .container {
    position: relative;
    z-index: 2;
}

.service-section .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.service-section .section-title h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-section .section-title p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.service-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Add extra spacing between service rows */
.service-section .row {
    margin-bottom: 20px;
}

.service-section .col-lg-4,
.service-section .col-md-6 {
    margin-bottom: 30px;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.si-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.service-item:hover .si-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.si-icon i {
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.service-item:hover .si-icon i {
    transform: scale(1.1);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.service-item h4 {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.service-item:hover h4 {
    color: #f8fafc;
    transform: translateY(-2px);
}

.service-item p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
    transition: all 0.3s ease;
}

.service-item:hover p {
    color: rgba(255, 255, 255, 0.95);
}

/* Responsive adjustments for service section */
@media (max-width: 768px) {
    .service-section .section-title h2 {
        font-size: 2rem;
    }
    
    .service-item {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .si-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .si-icon i {
        font-size: 1.8rem;
    }
    
    .service-item h4 {
        font-size: 1.2rem;
    }
    
    .service-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .service-item {
        padding: 20px 15px;
    }
    
    .si-icon {
        width: 60px;
        height: 60px;
    }
    
    .si-icon i {
        font-size: 1.6rem;
    }
}

/* Animation for service items */
.service-item {
    animation: fadeInUp 0.6s ease-out;
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }
.service-item:nth-child(6) { animation-delay: 0.6s; }

/* Print styles */
@media print {
    .modern-ip-banner-section {
        background: white;
        color: black;
    }
    
    .ip-results-section {
        background: white;
        color: black;
    }
    
    .ip-result-card {
        background: white;
        border: 1px solid #ccc;
        color: black;
    }
    
    .ip-quick-actions,
    .ip-actions {
        display: none;
    }
    
    .service-section {
        background: white;
        color: black;
    }
    
    .service-item {
        background: white;
        border: 1px solid #ccc;
        color: black;
    }
}