/* static/style.css */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 900px;
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

header {
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    color: #1a202c;
    margin: 0;
}

.ip-display-card {
    text-align: center;
    background-color: #edf2f7;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
}

.ip-display-card h2 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #4a5568;
    font-weight: normal;
}

.ip-display-card p {
    font-family: 'Roboto Mono', monospace;
    font-size: 2.8rem;
    font-weight: 700;
    color: #2d3748;
    margin: 10px 0;
    word-break: break-all;
}

.ip-display-card button {
    font-family: 'Inter', sans-serif;
    background-color: #4a5568;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ip-display-card button:hover {
    background-color: #2d3748;
}

.error-message {
    color: #e53e3e;
    font-weight: bold;
    font-size: 1.2rem !important;
}

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

.detail-card {
    background-color: #f9fafb;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
}

.detail-card h3 {
    margin-top: 0;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
    font-size: 1.1rem;
    color: #2d3748;
}

.detail-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    color: #4a5568;
}

.detail-card li {
    padding: 8px 0;
    font-size: 0.95rem;
}

.detail-card strong {
    color: #1a202c;
}

.info-section {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    line-height: 1.7;
    color: #4a5568;
}

.info-section h2 {
    color: #2d3748;
}

.adsense-placeholder {
    background-color: #e2e8f0;
    border: 2px dashed #cbd5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    color: #718096;
}

.leaderboard {
    width: 728px;
    height: 90px;
}

.content-box {
    width: 300px;
    height: 250px;
    float: right;
    margin-left: 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    header h1 {
        font-size: 2rem;
    }
    .ip-display-card p {
        font-size: 2rem;
    }
    .content-box {
        float: none;
        margin: 20px auto;
    }
}