/* Tool Page Common Styles */
.tool-page {
    padding-top: 0;
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #667eea;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #ddd;
}

.breadcrumb .current {
    color: #333;
    font-weight: 600;
}

/* Tool Header */
.tool-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.tool-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.tool-icon-large {
    font-size: 72px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tool-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.2;
}

.tool-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 25px;
    line-height: 1.6;
}

.tool-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-separator {
    opacity: 0.5;
}

/* Tool Content */
.tool-content {
    padding: 60px 20px;
    background: #f8f9fa;
}

/* IP Checker Specific Styles */
.ip-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 15px 60px rgba(0,0,0,0.12);
    overflow: hidden;
}

.ip-body {
    padding: 40px 30px;
}

.ip-loading {
    text-align: center;
    padding: 60px 20px;
}

.ip-loader {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.ip-loading p {
    font-size: 16px;
    color: #666;
    font-weight: 600;
}

.ip-main-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(102,126,234,0.3);
}

.ip-main-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ip-address {
    font-size: 56px;
    font-weight: 900;
    margin: 15px 0;
    line-height: 1;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.2);
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.ip-copy-btn {
    padding: 14px 35px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.ip-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.ip-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ip-info-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #667eea;
    transition: all 0.3s;
}

.ip-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.ip-info-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.ip-info-card h4 {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ip-info-card p {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
    word-break: break-word;
}

.ip-location-section {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.ip-location-section h3 {
    font-size: 24px;
    color: #8b3a3a;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

.ip-map-placeholder {
    background: white;
    height: 300px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ip-location-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.ip-location-item {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ip-location-item span:first-child {
    font-size: 24px;
}

.ip-location-text {
    flex: 1;
}

.ip-location-text strong {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.ip-location-text p {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.ip-security-section {
    background: #e3f2fd;
    border-left: 5px solid #2196f3;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.ip-security-section h3 {
    font-size: 22px;
    color: #1565c0;
    margin-bottom: 20px;
    font-weight: 700;
}

.ip-security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.ip-security-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.ip-security-card h4 {
    font-size: 15px;
    color: #1565c0;
    margin-bottom: 8px;
    font-weight: 700;
}

.ip-security-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.ip-privacy-tips {
    background: #fff3e0;
    border-left: 5px solid #ff9800;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.ip-privacy-tips h4 {
    color: #e65100;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
}

.ip-privacy-tips ul {
    margin: 0;
    padding-left: 20px;
    color: #555;
}

.ip-privacy-tips li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.ip-refresh-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.ip-refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.3);
}

/* SEO Content Section */
.seo-content {
    padding: 80px 20px;
    background: white;
}

.content-article {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-article h2 {
    font-size: 32px;
    font-weight: 800;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #333;
}

.content-article h2:first-child {
    margin-top: 0;
}

.content-article h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #333;
}

.content-article p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.content-article ul,
.content-article ol {
    margin-bottom: 25px;
    padding-left: 30px;
    color: #666;
}

.content-article li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.content-article strong {
    color: #333;
    font-weight: 700;
}

/* Related Tools */
.related-tools {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
}

.related-tools h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.related-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.related-tool-card .tool-icon {
    font-size: 42px;
}

.related-tool-card .tool-name {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 32px;
    }
    
    .tool-subtitle {
        font-size: 16px;
    }
    
    .tool-icon-large {
        font-size: 52px;
    }
    
    .tool-meta {
        font-size: 14px;
    }
    
    .ip-container {
        margin: 20px;
        border-radius: 20px;
    }
    
    .ip-body {
        padding: 30px 20px;
    }
    
    .ip-main-card {
        padding: 30px 20px;
    }
    
    .ip-address {
        font-size: 36px;
    }
    
    .ip-info-grid {
        grid-template-columns: 1fr;
    }
    
    .ip-location-details {
        grid-template-columns: 1fr;
    }
    
    .ip-security-grid {
        grid-template-columns: 1fr;
    }
    
    .content-article h2 {
        font-size: 26px;
    }
    
    .content-article h3 {
        font-size: 20px;
    }
    
    .related-tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ip-address {
        font-size: 28px;
    }
    
    .ip-location-section {
        padding: 25px 20px;
    }
    
    .ip-map-placeholder {
        height: 200px;
        font-size: 60px;
    }
}