* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #000000;
    color: #e7e9ea;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.logo-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border-bottom: 1px solid #2f3336;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: inline-block;
}

.logo-container img {
    height: 40px;
    width: auto;
    display: block;
}

.header-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: #e7e9ea;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.2s;
}

.nav-link:hover {
    background-color: #16181c;
    color: #1d9bf0;
}

.main-content {
    flex: 1;
}

.footer {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #2f3336;
    color: #71767b;
    font-size: 13px;
}

.footer a {
    color: #71767b;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #e7e9ea;
}

.feed-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #000000;
}

.news-card {
    border-bottom: 1px solid #2f3336;
    padding: 15px 20px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.news-card:hover {
    background-color: #16181c;
}

.news-card-content {
    display: flex;
    flex-direction: column;
}

.news-card-image {
    width: 100%;
    margin: 12px 0;
    border-radius: 12px;
    overflow: hidden;
    background-color: #2f3336;
    aspect-ratio: 16 / 9;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-body {
    width: 100%;
}

.news-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #e7e9ea;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.news-card-meta {
    font-size: 13px;
    color: #71767b;
    margin: 0 0 8px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.news-card-meta span {
    display: inline-block;
}

.news-card-meta .separator {
    color: #71767b;
}

.news-card-summary {
    font-size: 14px;
    color: #e7e9ea;
    line-height: 1.4;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.news-card-stats {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 13px;
    color: #71767b;
}

.news-card-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-stat i {
    font-size: 16px;
}

.pagination-container {
    padding: 20px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    display: inline-block;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #e7e9ea;
    background-color: #16181c;
    border: 1px solid #2f3336;
}

.pagination a:hover {
    background-color: #2f3336;
}

.pagination .active span {
    background-color: #1d9bf0;
    color: #fff;
    border-color: #1d9bf0;
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

/* News Detail Page Styles */
.news-detail-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #000000;
}

.news-detail-back-top,
.news-detail-back-bottom {
    padding: 16px 20px;
    border-bottom: 1px solid #2f3336;
}

.news-detail-back-bottom {
    border-bottom: none;
    border-top: 1px solid #2f3336;
    margin-top: 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e7e9ea;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.back-button:hover {
    background-color: #16181c;
    color: #1d9bf0;
}

.back-button i {
    font-size: 14px;
}

.news-detail-header {
    padding: 20px;
    border-bottom: 1px solid #2f3336;
}

.news-detail-title {
    font-size: 20px;
    font-weight: bold;
    color: #e7e9ea;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.news-detail-meta {
    font-size: 15px;
    color: #71767b;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.news-detail-meta span {
    display: inline-block;
}

.news-detail-meta .separator {
    color: #71767b;
}

.news-detail-meta .meta-author {
    font-weight: 500;
}

.news-detail-meta .meta-date i,
.news-detail-meta .meta-updated i {
    margin-right: 4px;
    font-size: 13px;
}

.news-detail-meta .meta-category {
    background-color: #1d9bf0;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.news-detail-image {
    width: 100%;
    margin: 16px 0;
    border-radius: 0;
    overflow: hidden;
    background-color: #2f3336;
}

.news-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail-content {
    padding: 20px;
    color: #e7e9ea;
    line-height: 1.6;
    font-size: 15px;
}

.news-detail-content p {
    margin-bottom: 16px;
}

.news-source-attribution {
    margin: 20px 20px;
    padding: 16px;
    background-color: #16181c;
    border: 1px solid #2f3336;
    border-radius: 12px;
    color: #e7e9ea;
}

.source-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #1d9bf0;
    font-size: 14px;
}

.source-header i {
    font-size: 16px;
}

.source-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
}

.source-name {
    color: #e7e9ea;
    font-weight: 500;
}

.source-link {
    color: #1d9bf0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.source-link:hover {
    text-decoration: underline;
}

.source-link i {
    font-size: 12px;
}

.news-article-info {
    margin: 20px 20px;
    padding: 16px;
    background-color: #16181c;
    border: 1px solid #2f3336;
    border-radius: 12px;
    color: #71767b;
    font-size: 13px;
}

.article-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.article-info-item:last-child {
    margin-bottom: 0;
}

.article-info-item i {
    font-size: 14px;
    color: #1d9bf0;
}

.article-info-item strong {
    color: #e7e9ea;
    font-weight: 600;
}

.article-info-item a {
    color: #1d9bf0;
    text-decoration: none;
    transition: all 0.2s;
}

.article-info-item a:hover {
    text-decoration: underline;
    color: #1a8cd8;
}

.news-detail-stats {
    display: flex;
    gap: 20px;
    padding: 16px 20px;
    border-top: 1px solid #2f3336;
    border-bottom: 1px solid #2f3336;
    font-size: 15px;
    color: #71767b;
}

.news-detail-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.news-detail-stat:hover {
    color: #e7e9ea;
}

.news-detail-stat.liked {
    color: #f4212e;
}

.news-detail-stat i {
    font-size: 18px;
}

.comment-section {
    padding: 20px;
    border-bottom: 1px solid #2f3336;
}

.comment-form {
    margin-bottom: 24px;
}

.comment-input {
    width: 100%;
    background-color: #16181c;
    border: 1px solid #2f3336;
    border-radius: 8px;
    padding: 12px 16px;
    color: #e7e9ea;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.comment-input:focus {
    outline: none;
    border-color: #1d9bf0;
}

.comment-input::placeholder {
    color: #71767b;
}

.comment-form-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.comment-form-input {
    flex: 1;
    background-color: #16181c;
    border: 1px solid #2f3336;
    border-radius: 8px;
    padding: 12px 16px;
    color: #e7e9ea;
    font-size: 15px;
    font-family: inherit;
}

.comment-form-input:focus {
    outline: none;
    border-color: #1d9bf0;
}

.comment-form-input::placeholder {
    color: #71767b;
}

.comment-submit-btn {
    background-color: #1d9bf0;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.comment-submit-btn:hover {
    background-color: #1a8cd8;
}

.comment-submit-btn:disabled {
    background-color: #71767b;
    cursor: not-allowed;
}

.comments-list {
    margin-top: 24px;
}

.comment-item {
    padding: 16px 0;
    border-bottom: 1px solid #2f3336;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-author {
    font-weight: bold;
    color: #e7e9ea;
    margin-bottom: 4px;
}

.comment-content {
    color: #e7e9ea;
    line-height: 1.5;
    margin-bottom: 8px;
}

.comment-date {
    font-size: 13px;
    color: #71767b;
}

.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.share-modal.active {
    display: flex;
}

.share-modal-content {
    background-color: #000000;
    border-radius: 16px;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    border: 1px solid #2f3336;
    max-height: 90vh;
    overflow-y: auto;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.share-modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #e7e9ea;
}

.share-modal-close {
    background: none;
    border: none;
    color: #71767b;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.share-modal-close:hover {
    background-color: #16181c;
    color: #e7e9ea;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    color: #e7e9ea;
}

.share-option:hover {
    background-color: #16181c;
}

.share-option i {
    font-size: 20px;
    width: 28px;
    text-align: center;
}

.share-option span {
    font-size: 14px;
}

/* Mobile optimization for share modal */
@media (max-width: 600px) {
    .share-modal-content {
        padding: 16px;
        width: 92%;
        max-width: 340px;
    }
    
    .share-modal-header {
        margin-bottom: 12px;
    }
    
    .share-modal-title {
        font-size: 16px;
    }
    
    .share-modal-close {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
    
    .share-options {
        gap: 6px;
    }
    
    .share-option {
        padding: 8px 10px;
        gap: 10px;
    }
    
    .share-option i {
        font-size: 18px;
        width: 24px;
    }
    
    .share-option span {
        font-size: 13px;
    }
}

/* Notification Message */
.notification-message {
    display: none;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.notification-message.success {
    background-color: #1d9bf0;
    color: #fff;
    border: 1px solid #1a8cd8;
}

.notification-message.error {
    background-color: #f4212e;
    color: #fff;
    border: 1px solid #d91e2a;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #16181c;
    border-top: 1px solid #2f3336;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.cookie-consent-text {
    flex: 1;
    text-align: center;
}

.cookie-consent-text p {
    color: #e7e9ea;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-consent-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.cookie-consent-accept {
    background-color: #1d9bf0;
    color: #fff;
}

.cookie-consent-accept:hover {
    background-color: #1a8cd8;
}

.cookie-consent-decline {
    background-color: #2f3336;
    color: #e7e9ea;
    border: 1px solid #71767b;
}

.cookie-consent-decline:hover {
    background-color: #71767b;
    color: #fff;
}

@media (max-width: 600px) {
    .cookie-consent-content {
        padding: 0;
    }
    
    .cookie-consent-buttons {
        width: 100%;
    }
    
    .cookie-consent-btn {
        flex: 1;
    }
}

/* PWA Install Prompt Styles */
.pwa-install-prompt {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #16181c;
    border-top: 1px solid #2f3336;
    padding: 16px 20px;
    z-index: 10001;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

.pwa-install-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-install-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: #1d9bf0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.pwa-install-text {
    flex: 1;
    min-width: 0;
}

.pwa-install-title {
    font-size: 15px;
    font-weight: bold;
    color: #e7e9ea;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.pwa-install-description {
    font-size: 13px;
    color: #71767b;
    margin: 0;
    line-height: 1.4;
}

.pwa-install-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-install-btn {
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
}

.pwa-install-primary {
    background-color: #1d9bf0;
    color: #fff;
}

.pwa-install-primary:hover {
    background-color: #1a8cd8;
}

.pwa-install-dismiss {
    background-color: #2f3336;
    color: #71767b;
    border: 1px solid #71767b;
    padding: 8px 12px;
    min-width: 40px;
    justify-content: center;
}

.pwa-install-dismiss:hover {
    background-color: #71767b;
    color: #fff;
}

.pwa-install-btn i {
    font-size: 14px;
}

@media (max-width: 600px) {
    .pwa-install-content {
        flex-wrap: wrap;
    }
    
    .pwa-install-text {
        flex-basis: 100%;
        order: 1;
    }
    
    .pwa-install-buttons {
        flex-basis: 100%;
        order: 2;
        justify-content: space-between;
    }
    
    .pwa-install-primary {
        flex: 1;
    }
    
    .pwa-install-description {
        display: none;
    }
    
    .header-nav {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .logo-container img {
        height: 32px;
    }
}

