* {
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body {
    background-color: rgb(246, 246, 246);
}

a {
    display: contents;
}

.hidden {
    display: none;
}

.offline {
    background-color: grey !important;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
}

.sidebar {
    display: none;
}

.header {
    display: flex;
}

.profile-section {
    width: 100%;
    padding: 1.5rem;
    background: rgb(231, 99, 18);
    color: white;
}

.main-content > .profile-section {
    display: block;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgb(250, 250, 250);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Times New Roman', Times, serif;
}

.profile-username {
    font-size: 1rem;
    font-family: 'Times New Roman', Times, serif;
}

.settings-btn {
    display: none;
}

.logout-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.photo-grid {
    flex: 1;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 5rem;
}

.photo-item {
    border-radius: .8rem;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.2s;
}

.photo-item:hover {
    transform: scale(0.98);
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 2rem;
}

.bottom-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-top: 1px solid #ddd;
}

.btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-share {
    background: blue;
    color: white;
}

.btn-upload {
    background: red;
    color: white;
}

.btn-select {
    background: orange;
    color: white;
}

.btn-shares {
    background: green;
    color: white;
}

.on {
    background-color: purple;
}

.selected {
    border: 5px solid purple;
}

.btn-settings {
    background: gray;
    color: white;
}

/* Desktop Layout */
@media (min-width: 768px) {
    .container {
        flex-direction: row;
    }

    .header {
        display: none;
    }

    .main-content > .profile-section {
        display: none !important;
    }

    .sidebar .profile-section {
        display: block;
    }

    .sidebar {
        width: 300px;
        height: 100%;
        position: fixed;
        background: white;
        border-right: 1px solid #e0e0e0;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        padding: 1.5rem;
    }

    .profile-section {
        width: 100%;
        background: rgb(231, 99, 18);
        color: white;
        margin-bottom: 1.5rem;
        border-radius: 0.75rem;
        text-align: center;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        margin: 0 auto 0.75rem;
    }

    .desktop-controls {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .desktop-controls .btn {
        width: 100%;
        justify-content: center;
    }

    .bottom-controls {
        display: none;
    }

    .logout-btn {
        display: none;
    }

    .main-content {
        margin-left: 300px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
}

@media (min-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}