@import "theme.css";

body {
    color: var(--tekst-1);
    background-color: var(--tlo-2);
}

a {
    color: var(--tekst-2);
}

/* header */

/* header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--tlo-1);
    color: var(--tekst-2);
    border-bottom: var(--border-1) solid var(--tekst-1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    z-index: 1000;
    box-sizing: border-box;
}

.header-left {
    font-weight: 500;
    font-size: 14px;
    padding: 12px;
    box-sizing: border-box;
}

#temperature {
    margin-left: 10px;
}

/* center */
.header-center {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    box-sizing: border-box;
}

.header-center select,
.header-center button, .header-right .btn, .subscribe-btn {
    font-family: "Josefin Sans", sans-serif;
    padding: 6px 10px;
    border-radius: var(--radius-2);
    border: var(--border-1) solid var(--tekst-1);
}

.header-center button, .subscribe-btn {
    background: var(--akcent-1);
    color: var(--tekst-2);
    cursor: pointer;
}

.header-center button:hover, .header-right .btn:hover, .subscribe-btn:hover {
  background: var(--akcent-2);
}

/* right */
.header-right .btn {
    text-decoration: none;
    box-sizing: border-box;
    display: block;
    background: var(--akcent-1);
    color: var(--tekst-2);
    cursor: pointer;
}

.header-right{
  padding: 12px;
  display: flex;
}



/* feed items */

#container {
  max-width: 700px;
  margin: 20px auto;
  margin-top: 180px;
}

.news-item {
  display: flex;
  gap: 15px;
  background: var(--tlo-1);
  padding: 15px;
  margin-bottom: 15px;
  border: var(--border-1) solid var(--tekst-1);
  border-radius: var(--radius-1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.news-thumb {
  width: 200px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-1);
}

.news-content {
  flex: 1;
}

.news-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 8px;
}

.news-time {
  font-size: 13px;
  color: var(--tekst-2);
}

#loader {
  text-align: center;
  padding: 35px 20px;
  font-size: 16px;
  display: none;
}

#loader i {
  font-size: 26px;
  margin-right: 8px;
}

.news-source {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--tekst-2);
    min-height: 18px;
}

.news-favicon {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}