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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.profile-header {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

.username {
    color: #888;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: normal;
}

.profile-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.profile-bio {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-count {
    color: #888;
    font-size: 14px;
}

.download-app {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.download-app h3 {
    margin-bottom: 10px;
}

.app-link,
.download-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid white;
    padding: 8px 16px;
    border-radius: 20px;
    margin: 0 5px;
    display: inline-block;
    transition: background 0.3s;
}

.app-link:hover,
.download-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-item {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    /* Important for overlay positioning */
}

.post-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 8px;
    border-radius: 0 0 10px 0;
}

.like-section {
    display: flex;
    align-items: center;
    gap: 4px;
}

.like-count {
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.heart-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    transition: transform 0.1s;
}

.heart-btn:hover {
    transform: scale(1.2);
}

.heart-btn:active {
    transform: scale(0.9);
}

.post-item:hover {
    transform: scale(1.05);
}

.no-posts {
    text-align: center;
    padding: 40px;
    color: #666;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Add this to your existing CSS */
.like-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.like-overlay.show {
    display: flex;
}

.like-modal {
    background: white;
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    color: black;
}

.like-heart {
    font-size: 60px;
    color: #e91e63;
    margin-bottom: 20px;
}

.like-modal h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
}

.like-modal p {
    color: #999;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.4;
}

.like-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-primary {
    background: #1da1f2;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.btn-secondary {
    background: transparent;
    color: #1da1f2;
    padding: 15px 30px;
    border: 2px solid #1da1f2;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
}

.btn-download {
    background: transparent;
    color: #1da1f2;
    padding: 15px 30px;
    border: 2px solid #1da1f2;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.close-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-header {
        padding: 20px;
    }

    .app-link,
    .download-link {
        display: block;
        margin: 5px 0;
    }
}