* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #1a1a1a;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #1a1a1a;
    box-shadow: 0px 3px 15px 0px rgb(91 84 84 / 10%);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    color: #0073a0;
    font-weight: bold;
    font-size: 20px;
}

.logo i img {
    width: 23px;
    height: 13px;
    margin-right: 5px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: #414141;
    padding: 10px 15px;
    border-radius: 25px;
    width: 60%;
    max-width: 700px;
}

.search-bar i {
    color: #d8d8d8;
    margin-right: 10px;
}

.search-bar input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 16px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: #ececec;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: 600;
}

nav ul li a.active {
    background-color: #111;
    color: white;
}

nav ul li a:hover:not(.active) {
    background-color: #efefef;
    color: #111;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-actions i {
    font-size: 20px;
    color: #bebebe;
    cursor: pointer;
}

.user-avatar img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

main {
    margin-top: 70px;
    padding: 20px;
}

.pins-container {
    column-count: 5;
    column-gap: 15px;
    margin: 0 auto;
    max-width: 1800px;
}

.pin {
    break-inside: avoid;
    margin-bottom: 15px;
    border-radius: 16px;
    background: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.pin:hover {
    transform: scale(1.02);
}

.pin-image {
    width: 100%;
    display: block;
}

.pin-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.2s;
}

.pin:hover .pin-actions {
    opacity: 1;
}

.pin-action-btn {
    background-color: #003c8a;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

.pin-details {
    padding: 12px;
}

.pin-title {
    font-weight: bold;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pin-author {
    display: flex;
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
    color: #767676;
}

.pin-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
}

@media (max-width: 1200px) {
    .pins-container {
        column-count: 4;
    }
}

@media (max-width: 900px) {
    .pins-container {
        column-count: 3;
    }
    
    .search-bar {
        width: 50%;
    }
    
    nav {
        display: none;
    }
}

@media (max-width: 600px) {
    .pins-container {
        column-count: 2;
    }
    
    .search-bar {
        display: none;
    }
    
    .user-actions i {
        display: none;
    }
}