* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #DAE0E6;
    color: #1c1c1c;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-size: 14px;
}

img {
    max-width: 100%;
}


header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #EDEFF1;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo img {
    width: 100px;
    height: 55px;
}

.reddit-text {
    color: #FF4500;
    font-weight: bold;
    font-size: 20px;
    margin-left: 8px;
}

.header-center {
    flex-grow: 1;
    margin: 0 16px;
    max-width: 650px;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: #F6F7F8;
    border-radius: 20px;
    padding: 8px 16px;
    border: 1px solid #EDEFF1;
}

.search-container i {
    color: #878A8C;
    margin-right: 8px;
}

.search-container input {
    width: 100%;
    border: none;
    outline: none;
    background-color: transparent;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.get-app-btn {
    background-color: #F6F7F8;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 600;
}

.login-btn {
    background-color: #FF4500;
    color: white;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 600;
}

.more-options {
    padding: 8px;
}


.left-sidebar {
    width: 240px;
    background-color: white;
    border-radius: 4px;
    padding: 16px 0;
    position: fixed;
    top: 60px;
    left: 16px;
    bottom: 0;
    overflow-y: auto;
    border: 1px solid #CCCCCC;
}

.left-sidebar-section {
    margin-bottom: 16px;
}

.left-sidebar-section h3 {
    font-size: 12px;
    color: #787C7E;
    padding: 0 16px;
    margin-bottom: 8px;
}

.left-sidebar-menu {
    list-style: none;
}

.menu-item {
    padding: 0 16px;
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #1c1c1c;
    border-radius: 4px;
}

.menu-item a:hover {
    background-color: #F6F7F8;
}

.menu-item.active a {
    color: #FF4500;
}

.menu-item i {
    margin-right: 8px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}


.content-container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    margin-left: 264px; 
    gap: 24px;
    padding: 0 16px;
}

.post-container {
    background-color: white;
    border-radius: 4px;
    border: 1px solid #CCCCCC;
    flex-grow: 1;
    max-width: 740px;
}


.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid #EDEFF1;
}

.post-info {
    display: flex;
    align-items: center;
}

.subreddit-icon img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
}

.post-metadata {
    display: flex;
    flex-direction: column;
}

.subreddit {
    font-weight: 600;
    font-size: 14px;
}

.post-time {
    font-size: 12px;
    color: #787C7E;
}

.join-btn {
    background-color: #0079D3;
    color: white;
    border-radius: 20px;
    padding: 4px 16px;
    font-weight: 600;
    font-size: 12px;
}


.post-title {
    font-size: 20px;
    font-weight: 500;
    padding: 12px 16px;
}

.post-content {
    padding: 0 16px 16px;
}

.post-image img {
    width: 100%;
    border-radius: 4px;
}


.post-actions {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-top: 1px solid #EDEFF1;
    color: #878A8C;
}

.votes {
    display: flex;
    align-items: center;
    margin-right: 16px;
}

.upvote, .downvote {
    padding: 4px;
}

.vote-count {
    margin: 0 4px;
    font-weight: 600;
}

.comments-btn, .share-btn, .save-btn, .more-options-btn {
    display: flex;
    align-items: center;
    margin-right: 16px;
    padding: 4px 8px;
    border-radius: 4px;
}

.comments-btn i, .share-btn i, .save-btn i, .more-options-btn i {
    margin-right: 4px;
}

.comments-btn:hover, .share-btn:hover, .save-btn:hover, .more-options-btn:hover {
    background-color: #F6F7F8;
}


.add-comment {
    padding: 8px 16px;
    border-top: 1px solid #EDEFF1;
}

.add-comment-btn {
    width: 100%;
    background-color: #F6F7F8;
    border: 1px solid #EDEFF1;
    border-radius: 4px;
    padding: 8px;
    text-align: left;
    color: #878A8C;
}


.sort-container {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    border-top: 1px solid #EDEFF1;
    font-size: 12px;
    color: #878A8C;
}

.sort-dropdown {
    display: flex;
    align-items: center;
}

.sort-btn {
    margin-left: 4px;
    font-weight: 600;
}

.search-comments {
    display: flex;
    align-items: center;
    background-color: #F6F7F8;
    border-radius: 20px;
    padding: 4px 12px;
}

.search-comments i {
    margin-right: 4px;
}

.search-comments input {
    border: none;
    outline: none;
    background-color: transparent;
    width: 120px;
    font-size: 12px;
}


.comments-section {
    padding: 8px 16px;
}

.comment {
    display: flex;
    margin-bottom: 16px;
    position: relative;
}

.comment-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 8px;
    font-size: 12px;
}

.comment-upvote, .comment-downvote {
    padding: 2px;
    font-size: 12px;
}

.comment-vote-count {
    margin: 2px 0;
    font-weight: 600;
}

.comment-content {
    flex-grow: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.user-avatar {
    width: 30px;
    height: 30px;
    background-color: purple;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    font-weight: bold;
}

.username {
    font-weight: 600;
    font-size: 12px;
}

.comment-time {
    font-size: 12px;
    color: #787C7E;
    margin-left: 4px;
}

.comment-text {
    font-size: 14px;
    margin-bottom: 8px;
}

.comment-actions {
    display: flex;
    color: #878A8C;
    font-size: 12px;
}

.comment-actions button {
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.comment-actions button i {
    margin-right: 4px;
}

.comment-reply {
    display: flex;
    margin-top: 16px;
    margin-left: 24px;
    position: relative;
}

.comment-reply::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #EDEFF1;
}

.view-more-comments {
    background-color: #0079D3;
    color: white;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 600;
    margin: 8px auto;
    display: block;
}


.sidebar {
    width: 320px;
    flex-shrink: 0;
}

.signup-card {
    background-color: white;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #CCCCCC;
}

.signup-card h3 {
    margin-bottom: 8px;
}

.signup-card p {
    font-size: 14px;
    margin-bottom: 16px;
}

.signup-card button {
    width: 100%;
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signup-card button i {
    margin-right: 8px;
}

.continue-google {
    background-color: white;
    border: 1px solid #CCCCCC;
}

.continue-email {
    background-color: white;
    border: 1px solid #CCCCCC;
}

.continue-phone {
    background-color: white;
    border: 1px solid #CCCCCC;
}

.terms-text {
    font-size: 12px;
    color: #787C7E;
}

.popular-posts {
    background-color: white;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #CCCCCC;
}

.popular-post {
    margin-bottom: 12px;
}

.popular-post-content {
    display: flex;
    align-items: center;
}

.post-thumbnail {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    margin-right: 8px;
}

.popular-post-text p {
    font-size: 14px;
}

.popular-post-stats {
    font-size: 12px;
    color: #787C7E;
}

.about-sidebar {
    background-color: white;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #CCCCCC;
}

.about-sidebar h3 {
    margin-bottom: 8px;
}

.community-stats {
    display: flex;
    margin-bottom: 16px;
}

.stat {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-weight: 600;
}

.stat-label {
    font-size: 12px;
    color: #787C7E;
}

.created-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #787C7E;
}

.resources, .communities {
    background-color: white;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #CCCCCC;
}

.resources h3, .communities h3 {
    margin-bottom: 8px;
    font-size: 12px;
    color: #787C7E;
}

.resources-list, .communities-list {
    list-style: none;
}

.resources-list li, .communities-list li {
    padding: 8px 0;
    font-size: 14px;
}

.resources-list i, .communities-list i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.footer {
    font-size: 12px;
    color: #787C7E;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
}

.footer a {
    margin-right: 8px;
    margin-bottom: 4px;
}

.mobile-navigation {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid #EDEFF1;
    z-index: 100;
    padding: 8px 0;
    width: 100%;
    justify-content: space-between;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: #878A8C;
    padding: 0 2px;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
}

.nav-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.nav-item i {
    font-size: 18px;
    margin-bottom: 2px;
}

.nav-item.active {
    color: #FF4500;
}

.app-screenshots {
    position: relative;
    margin: 16px;
    width: calc(100% - 32px);
}

.screenshot-container {
    width: 100%;
    position: relative;
    margin-bottom: 16px;
}

.screenshot-slider {
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    border-radius: 12px;
    background-color: #f8f9fa;
}

.screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    object-fit: contain;
    border-radius: 12px;
    cursor: pointer;
}

.screenshot.active {
    opacity: 1;
    z-index: 2;
}

.thumbnail-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
    max-width: 100%;
}

.thumbnail-row::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    border: 2px solid transparent;
    opacity: 0.7;
}

.thumbnail:hover {
    transform: scale(1.05);
    opacity: 1;
}

.thumbnail.active {
    border-color: #018058;
    opacity: 1;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 12px;
}

.slider-btn {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: background-color 0.2s;
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.95);
}

.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
}

@media (max-width: 1200px) {
    .left-sidebar {
        width: 200px;
    }
    
    .content-container {
        margin-left: 224px;
    }
}

@media (max-width: 960px) {
    .left-sidebar {
        width: 0;
        display: none;
    }
    
    .content-container {
        flex-direction: column;
        margin-left: 16px;
    }
    
    .post-container {
        max-width: 100%;
    }
    
    .sidebar {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .header-center {
        display: none;
    }
    
    .get-app-btn {
        display: none;
    }
    
    .mobile-navigation {
        display: flex;
    }
    
    main {
        padding-bottom: 60px;
    }
    
    .resources, .communities, .about-sidebar {
        display: none;
    }
    
    .search-comments {
        display: none;
    }
    
    .comment-actions button:nth-child(2),
    .comment-actions button:nth-child(3) {
        display: none;
    }
    
    .left-sidebar {
        left: -240px;
        transition: left 0.3s ease;
    }
    
    .left-sidebar.active {
        left: 0;
    }
    
    .thumbnail {
        width: 80px;
        height: 60px;
    }
}

@media (max-width: 360px) {
    .nav-item {
        padding: 0 1px;
        font-size: 9px;
    }
    
    html[lang="pl"] .nav-item {
        font-size: 8px;
    }
    
    .nav-item i {
        font-size: 16px;
    }
}

.intro-text {
    padding: 0 12px;		
}

body, main, .content-container, .mobile-navigation {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html[lang="pl"] .nav-item {
    font-size: 10px;
}

html[lang="pl"] .login-btn,
html[lang="pl"] .get-app-btn,
html[lang="pl"] .join-btn {
    padding: 4px 10px;
    font-size: 11px;
}
