:root {
    --bg-color: #fafafa;
    --text-color: #262626;
    --link-color: #00376b;
    --btn-bg: #0095f6;
    --border-color: #dbdbdb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.4;
}

a { text-decoration: none; color: inherit; }

.container {
    max-width: 935px; /* Szerokość kontenera IG */
    margin: 0 auto;
    padding: 30px 20px;
}

/* HEADER */
.profile-header {
    display: flex;
    margin-bottom: 44px;
    align-items: center;
}

.profile-image {
    flex: 1;
    display: flex;
    justify-content: center;
    margin-right: 30px;
}

.profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
    padding: 2px;
}

.profile-info {
    flex: 2;
}

.username-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.username {
    font-size: 28px;
    font-weight: 300;
    margin-right: 20px;
}

.follow-btn {
    background-color: var(--btn-bg);
    color: white;
    padding: 5px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.stats-row {
    margin-bottom: 20px;
    display: flex;
    gap: 40px;
    font-size: 16px;
}

.bio .fullname {
    font-weight: 600;
}

.website-link {
    color: var(--link-color);
    font-weight: 600;
}

/* HIGHLIGHTS */
.highlights {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto; /* Przewijanie na mobile */
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    min-width: 70px;
}

.highlight-item .circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    background: white;
}
.highlight-item span { font-size: 12px; font-weight: 600; }

/* GRID ZDJĘĆ */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolumny jak na IG */
    gap: 28px;
}

.photo-item {
    position: relative;
    padding-bottom: 100%; /* Tworzy kwadrat */
    overflow: hidden;
    background: #efefef;
}

.photo-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05); /* Lekki zoom po najechaniu */
}

footer {
    text-align: center;
    margin-top: 50px;
    font-size: 12px;
    color: #999;
}

/* WERSJA MOBILNA */
@media (max-width: 736px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .profile-image {
        margin-right: 0;
        margin-bottom: 20px;
        width: 100%;
        justify-content: flex-start;
    }
    .profile-image img { width: 77px; height: 77px; }
    
    .stats-row {
        justify-content: space-between;
        gap: 0;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        padding: 10px 0;
        margin: 20px 0;
    }
    .stats-row span {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 14px;
    }
    
    .photo-grid {
        gap: 3px; /* Mniejszy odstęp na mobile */
    }
}