/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Header Styles */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #d9232e;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
}

.app-logo {
    font-size: 20px;
    margin-left: 10px;
    font-weight: bold;
}

.hamburger-menu, .notification-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: white;
    color: #d9232e;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: left 0.3s ease;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #d9232e;
    color: white;
}

.close-sidebar {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.sidebar-menu li a:hover {
    background: #f0f0f0;
}

.sidebar-menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Notification Panel */
.notification-panel {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.3s ease;
}

.notification-panel.open {
    right: 0;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #d9232e;
    color: white;
}

.close-notifications {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.notification-list {
    padding: 15px;
    overflow-y: auto;
    height: calc(100% - 60px);
}

.notification-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.notification-item:last-child {
    border-bottom: none;
}

/* Main Content */
.main-content {
    padding: 15px;
}

/* News Card Styles */
.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 5px;
}

.news-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.news-category {
    display: inline-block;
    padding: 2px 6px;
    background: #d9232e;
    color: white;
    border-radius: 4px;
    font-size: 10px;
    margin-right: 5px;
}

.news-location {
    display: inline-block;
    color: #666;
}

.news-actions {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.news-action-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.news-action-btn i {
    margin-right: 5px;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    background: white;
    position: sticky;
    top: 60px;
    z-index: 90;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex: 0 0 auto;
    padding: 8px 15px;
    margin-right: 5px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.category-tab.active {
    background: #d9232e;
    color: white;
}

/* Swiper Styles */
.swiper-container {
    width: 100%;
    height: 220px;
    margin-bottom: 15px;
}

.swiper-slide {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

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

.swiper-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.swiper-slide-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.swiper-slide-meta {
    font-size: 12px;
}

/* Login/Register Forms */
.auth-container {
    padding: 20px;
}

.auth-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    background: #d9232e;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
}

.btn-block {
    display: block;
    width: 100%;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 15px;
}

/* Responsive Adjustments */
@media (max-width: 360px) {
    .app-logo {
        font-size: 18px;
    }
    
    .news-image {
        height: 150px;
    }
    
    .swiper-container {
        height: 180px;
    }
}

/* Swiper Container */
.swiper-container {
  width: 100%;
  height: 100vh; /* Full viewport height */
  margin: 0;
  padding: 0;
}

.swiper-wrapper {
  height: 100%;
}

.swiper-slide {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.swiper-slide img {
  width: 100%;
  height: 70%;
  object-fit: cover;
}

.swiper-slide-content {
  padding: 20px;
  height: 30%;
  overflow-y: auto;
}

/* Hide regular news list when using single-news mode */
.single-news-mode .latest-news-container {
  display: none;
}

/* Category tabs positioning */
.category-tabs {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 10;
  background: white;
  padding: 10px 0;
  overflow-x: auto;
  white-space: nowrap;
}

.category-tab {
  display: inline-block;
  padding: 5px 15px;
  margin: 0 5px;
  border-radius: 20px;
  background: #f0f0f0;
}

.category-tab.active {
  background: #007bff;
  color: white;
}