/* --- Global Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

/* --- Main Container --- */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    background: linear-gradient(0deg, #ffffff, #f5f8fb);
    color: #6f44ff;
    border-radius: 12px;
    padding: 0px 15px 10px 15px;
    width: 100%;
    margin-bottom: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.hero h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.hero p {
    font-size: 1.1rem;
}

/* --- IP Tool Section --- */
.ip-tool {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.ip-box {
    width: 100%;
    max-width: 800px;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* IP Rows */
.ip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    background: #f1f7ff;
    margin-bottom: 15px;
    transition: background 0.2s;
}

.ip-row:hover {
    background: #e6f0ff;
}

.ip-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ip-label-value {
    font-weight: 600;
    color: #0b74ff;
}

.ip-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #555;
}

.ip-flag {
    display: none;
    width: 24px;
    height: 16px;
    border-radius: 3px;
    box-shadow: 0 0 2px rgba(0,0,0,0.2);
}

.copy-ip-btn {
    background: #0b74ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-ip-btn:hover {
    background: #065cb5;
}

#ipv4-address,
#ipv6-address {
    word-break: break-all;
    overflow-wrap: anywhere;
    display: inline-block;
    max-width: 100%;
}

/* IP Info Section */
.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 10px 0;
}

#switch-ip-info-btn {
    background: #0b74ff;
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
}

#switch-ip-info-btn:hover {
    background: #065cb5;
}

.ip-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.info-row {
    flex: 1 1 45%;
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-weight: 600;
}

.copy-value-btn {
    background: #b0c0d6;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.85rem;
}

.copy-value-btn:hover {
    background: #065cb5;
}

/* --- SEO Content Section --- */
.seo-content {
    width: 100%;
    display: flex;
    justify-content: center;
}

.content-box {
    max-width: 800px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.content-box h2, .content-box h3 {
    color: #0b74ff;
    margin-bottom: 10px;
}

.content-box p, .content-box li {
    margin-bottom: 10px;
    color: #444;
}

.content-box ul {
    list-style: disc;
    margin-left: 20px;
}

/* --- Responsive --- */
@media(max-width:768px) {
    .ip-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .info-row {
        flex: 1 1 100%;
    }
    .info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
