/* Existing body and grid-container styles remain unchanged */
body {
    margin: 0;
    padding: 15px;
    background: #f4f4f4;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 12px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Profile card styles remain mostly unchanged, with min-height adjustment */
.profile-card {
    background: white;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 250px; /* Increased to accommodate description */
}

.profile-card:nth-child(odd) {
    transform: translateY(10px);
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
}

.profile-card:nth-child(even) {
    transform: translateY(-10px);
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
}

.profile-card:hover {
    transform: translateY(0) scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Image styles remain unchanged */
.profile-img {
    width: 100%;
    height: 120px;
    border-radius: 6px;
    object-fit: cover;
    margin: 0 auto 8px;
    border: none;
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

/* Updated profile-name for ad-like appearance */
.profile-name {
    font-family: 'Poppins', Arial, sans-serif; /* Modern, ad-friendly font */
    font-size: 16px; /* Slightly larger for emphasis */
    font-weight: 700; /* Bolder for ad impact */
    margin: 6px 0; /* More spacing */
    color: #1a73e8; /* Vibrant blue for ad feel */
    white-space: normal; /* Allow text to wrap */
    overflow: visible; /* Prevent clipping */
    text-overflow: initial; /* Disable ellipsis */
    line-height: 1.5; /* Better readability */
    word-wrap: break-word; /* Break long words */
    text-transform: uppercase; /* Optional: for ad-like boldness */
}

/* New ad-description class for paragraph-like text */
.ad-description {
    font-family: 'Roboto', Arial, sans-serif; /* Clean, readable font */
    font-size: 12px; /* Readable size */
    color: #555; /* Subtle gray for contrast */
    margin: 4px 0; /* Spacing */
    line-height: 1.4; /* Improve readability */
    text-align: left; /* Left-aligned for paragraph look */
    padding: 0 10px; /* Inner padding for ad box effect */
}

/* Timestamp and copy-btn styles remain unchanged */
.timestamp {
    color: #666;
    font-size: 10px;
    margin: 4px 0;
}

.copy-btn {
    background: none;
    border: none;
    color: #1a73e8;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.copy-btn:hover {
    background: #e8f0fe;
    color: #174ea6;
    border-radius: 3px;
}

/* Toast styles remain unchanged */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #222;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments remain unchanged, with minor tweaks */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .profile-img {
        height: 180px;
    }

    .profile-card:nth-child(odd),
    .profile-card:nth-child(even) {
        transform: translateY(0);
    }

    .profile-name {
        font-size: 14px; /* Slightly smaller on mobile */
    }

    .ad-description {
        font-size: 11px; /* Adjust for smaller screens */
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .profile-img {
        height: 150px;
    }

    .profile-name {
        font-size: 12px; /* Smaller text for mobile */
        line-height: 1.3;
    }

    .ad-description {
        font-size: 10px; /* Further reduce for small screens */
    }

    .toast {
        bottom: 15px;
        right: 15px;
        font-size: 11px;
    }
}