/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"app/layout.tsx","import":"Inter","arguments":[{"subsets":["latin"]}],"variableName":"inter"} ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* cyrillic-ext */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/ba9851c3c22cd980-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/21350d82a1f187e9-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/c5fe6dc8356a8c31-s.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/19cfc7226ec3afaa-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/df0a9ae256c0569c-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/8e9860b6e62d6359-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/e4af272ccee01ff0-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: '__Inter_Fallback_f367f3';src: local("Arial");ascent-override: 90.49%;descent-override: 22.56%;line-gap-override: 0.00%;size-adjust: 107.06%
}.__className_f367f3 {font-family: '__Inter_f367f3', '__Inter_Fallback_f367f3';font-style: normal
}

/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg-color: #f9fafb;
  --card-bg: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --accent-abc: #000000;
  --accent-elpais: #1976d2;
  --accent-ideal: #006e51;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

header {
  margin-bottom: 3rem;
  text-align: center;
}

h1 {
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #111827, #1976d2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.stats {
  display: inline-block;
  background: var(--card-bg);
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

/* Search Box */
.search-container {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid var(--border-color);
  border-radius: 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: var(--card-bg);
  transition: all 0.2s ease;
  outline: none;
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.search-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.clear-search {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  display: none;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.clear-search:hover {
  background: var(--bg-color);
  color: var(--text-primary);
}

.clear-search.visible {
  display: block;
}

/* Filter Bar */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.filter-section {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  padding: 0 0.5rem;
}

.filter-divider {
  width: 1px;
  height: 30px;
  background: var(--border-color);
  margin: 0 0.5rem;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: capitalize;
}

.filter-btn:hover {
  background-color: var(--bg-color);
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.filter-btn.active {
  background: var(--text-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.custom-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  z-index: 50;
  min-width: 200px;
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dropdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0.5rem;
  text-transform: capitalize;
  text-align: left;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background: var(--bg-color);
  color: var(--text-primary);
}

.dropdown-item.active {
  background: var(--text-primary);
  color: white;
}

.dropdown-count {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-gap: 1.25rem;
  gap: 1.25rem;
}

.news-card {
  background: var(--card-bg);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  opacity: 1;
  transform: translateY(0);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.news-card[data-source="ABC"]:hover {
  border-color: var(--accent-abc);
}

.news-card[data-source="ELPAIS"]:hover {
  border-color: var(--accent-elpais);
}

.news-card[data-source="IDEAL"]:hover {
  border-color: var(--accent-ideal);
}

.card-content {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.source-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.source-badge.abc {
  background: rgba(0, 0, 0, 0.85);
}

.source-badge.elpais {
  background: rgba(25, 118, 210, 0.9);
}

.source-badge.ideal {
  background: rgba(0, 110, 81, 0.9);
}

.category-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  width: -moz-fit-content;
  width: fit-content;
}

.news-card[data-source="ABC"] .category-tag {
  color: var(--accent-abc);
}

.news-card[data-source="ELPAIS"] .category-tag {
  color: var(--accent-elpais);
}

.news-card[data-source="IDEAL"] .category-tag {
  color: var(--accent-ideal);
}

.news-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

.news-link {
  text-decoration: none;
  color: inherit;
}

.news-link:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.card-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(to bottom, #fcfcfc, #fafafa);
}

.read-more {
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-card[data-source="ABC"] .read-more {
  color: var(--accent-abc);
}

.news-card[data-source="ELPAIS"] .read-more {
  color: var(--accent-elpais);
}

.news-card[data-source="IDEAL"] .read-more {
  color: var(--accent-ideal);
}

.read-more svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .read-more svg {
  transform: translateX(6px);
}

.loading {
  text-align: center;
  padding: 4rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.error {
  text-align: center;
  padding: 4rem;
  color: #dc2626;
}

.mobile-filter-toggle {
  display: none;
}
.filter-container-wrapper {
  display: block;
}

.url-form {
  display: flex;
  align-items: center;
  width: 100%;
}
.url-btn {
  margin-left: 0.5rem;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}
.source-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-gap: 2rem;
  gap: 2rem;
  align-items: start;
}
.sidebar-menu {
  position: -webkit-sticky;
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .container {
    padding: 0.75rem;
  }
  h1 {
    font-size: 2rem !important;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .mobile-filter-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
  }
  .filter-container-wrapper {
    display: none;
  }
  .filter-container-wrapper.open {
    display: block;
  }
  .search-input {
    padding: 0.6rem 0.6rem 0.6rem 2.5rem;
    font-size: 0.95rem;
    border-radius: 0.5rem;
  }
  .search-icon {
    left: 0.75rem;
    width: 1.1rem;
    height: 1.1rem;
  }
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  .url-form {
    flex-direction: column;
    gap: 0.5rem;
  }
  .url-btn {
    width: 100%;
    margin-left: 0 !important;
  }
  .main-title {
    display: none;
  }
  header {
    margin-bottom: 1rem;
  }
  
  /* Horizontal scroll for categories in nav */
  nav > div:last-child {
    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    justify-content: flex-start !important;
    padding: 0.75rem !important;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--border-color);
  }
  nav > div:last-child::-webkit-scrollbar {
    display: none; /* Hide scrollbar for cleaner look */
  }
  nav > div:last-child a {
    white-space: nowrap;
    padding: 0.25rem 0.5rem;
  }
}
@media (max-width: 900px) {
  .source-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .sidebar-menu {
    position: relative !important;
    top: 0 !important;
    display: flex;
    flex-direction: row !important;
    align-items: center;
    overflow-x: auto;
    padding: 0.75rem 1rem !important;
    gap: 0.5rem;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    border-radius: 0.75rem !important;
  }
  
  .sidebar-title {
    display: none;
  }
  
  .sidebar-item {
    display: inline-block !important;
    width: auto !important;
    margin-bottom: 0 !important;
    padding: 0.5rem 1rem !important;
  }
}

.sidebar-menu {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: -webkit-sticky;
  position: sticky;
  top: 2rem;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-primary);
}

.sidebar-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: capitalize;
  margin-bottom: 0.25rem;
}

.sidebar-item:hover {
  background: var(--bg-color);
  color: var(--text-primary);
}

.sidebar-item.active {
  background: var(--text-primary);
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-content {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* News Table */
.news-table-container {
  overflow-x: auto;
}

.news-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.news-table th,
.news-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.news-table th {
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  background: var(--bg-color);
}

.news-table th:first-child {
  border-top-left-radius: 0.5rem;
}

.news-table th:last-child {
  border-top-right-radius: 0.5rem;
}

.news-table tr {
  transition: background-color 0.2s ease;
}

.news-table tr:hover {
  background-color: var(--bg-color);
}

.news-table td.title-cell {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.news-table td.category-cell {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: capitalize;
}

.news-table td.action-cell {
  white-space: nowrap;
  width: 1%;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--text-primary);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-read-more:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-read-more svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  /* Transform table to card list on mobile */
  .news-table, .news-table tbody, .news-table tr, .news-table td {
    display: block;
    width: 100%;
  }
  
  .news-table thead {
    display: none; /* Hide table headers */
  }
  
  .news-table tr {
    padding: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
  }

  .news-table tr:last-child {
    border-bottom: none;
  }
  
  .news-table td {
    padding: 0 !important;
    border-bottom: none !important;
  }
  
  .news-table td.title-cell {
    width: 100%;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
  }
  
  .news-table td.category-cell {
    width: auto;
  }
  
  .news-table td.action-cell {
    width: auto;
    text-align: right;
  }
  
  .btn-read-more {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
}

