body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

header {
    background-color: #1a73e8;
    color: white;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: bold;
    text-decoration: none;
    color: white;
}

nav ul {
    list-style: none;
    display: flex;
    gap: clamp(0.5rem, 2vw, 1rem);
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

nav ul li a:hover {
    background-color: #1557b0;
    border-radius: 5px;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.hero, .ip-lookup, .blacklist-check, .proxy-check {
    text-align: center;
    padding: 2rem 0;
}

.hero h1, .ip-lookup h1, .blacklist-check h1, .proxy-check h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 1rem;
}

.ip-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.ip-box {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.ip-box h2 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: 0.5rem;
}

.ip-box p {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    font-weight: bold;
    color: #1a73e8;
}

.ip-box small {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
}

.vpn-notice, .error {
    color: #e67e22;
    font-weight: bold;
    margin: 1rem 0;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: clamp(0.9rem, 3vw, 1rem);
    touch-action: manipulation;
}

.btn:hover {
    background-color: #1557b0;
}

.ip-details, .faq, .blacklist-check table, .proxy-check table {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ip-details h2, .faq h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
}

.ip-details ul {
    list-style: none;
    padding: 0;
}

.ip-details ul li {
    margin: 0.5rem 0;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.faq article {
    margin-bottom: 1.5rem;
}

.faq article h2 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
}

.blacklist-check table, .proxy-check table {
    width: 100%;
    border-collapse: collapse;
}

.blacklist-check th, .blacklist-check td, .proxy-check th, .proxy-check td {
    padding: 0.5rem;
    border: 1px solid #ddd;
    text-align: left;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
}

.blacklist-check th, .proxy-check th {
    background-color: #f4f4f4;
}

.blacklist-check td.listed, .proxy-check td.true {
    color: #e67e22;
    font-weight: bold;
}

.blacklist-check .loading {
    font-style: italic;
    color: #555;
}

footer {
    background-color: #333 !important;
    color: white !important;
    text-align: center !important;
    padding: 1.5rem !important;
    margin-top: 2rem;
    border-top: 3px solid #1a73e8;
    width: 100%;
    box-sizing: border-box;
}

footer p {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    margin: 0.5rem 0;
}

footer a {
    color: #1a73e8;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    nav ul {
        gap: 0.5rem;
        justify-content: flex-end;
    }

    nav ul li a {
        padding: 0.3rem 0.8rem;
    }

    .ip-display {
        grid-template-columns: 1fr;
    }

    .hero, .ip-lookup, .blacklist-check, .proxy-check {
        padding: 1rem 0;
    }

    main {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
    }

    .blacklist-check table, .proxy-check table {
        font-size: clamp(0.7rem, 2vw, 0.8rem);
    }

    footer {
        padding: 1rem !important;
    }

    footer p {
        font-size: clamp(0.7rem, 2vw, 0.8rem);
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: clamp(1rem, 3.5vw, 1.2rem);
    }

    .hero h1, .ip-lookup h1, .blacklist-check h1, .proxy-check h1 {
        font-size: clamp(1.5rem, 5vw, 1.8rem);
    }

    .ip-box {
        padding: 1rem;
    }

    .ip-box p {
        font-size: clamp(1.2rem, 4.5vw, 1.5rem);
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li a {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
        padding: 0.3rem 0.6rem;
    }
}