:root {
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --primary-text-color: #e0e0e0;
    --secondary-text-color: #b0b0b0;
    --accent-color: #bb86fc;
    --border-color: #333;
    --hover-border-color: #555;
}

body {
    background-color: var(--background-color);
    color: var(--primary-text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
}

h1 {
    font-size: 3.5em;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1em;
    font-weight: 400;
    color: var(--secondary-text-color);
    margin: 5px 0 0 0;
    letter-spacing: 1px;
}

.subtitle a {
    color: var(--secondary-text-color);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
}

.subtitle a:hover {
    color: var(--accent-color);
}

.subtitle a .feather-external-link {
    width: 0.9em;
    height: 0.9em;
    margin-left: 5px;
}

#update-time {
    font-size: 0.8em;
    font-style: italic;
    color: var(--secondary-text-color);
    margin: 8px 0 0 0;
    font-weight: 400;
    margin-left: auto;
    align-self: flex-start;
    padding: 5px;
}

#news-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.news-item {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--hover-border-color);
}

.news-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-source {
    font-size: 0.8em;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.news-item h2 {
    margin: 0 0 10px 0;
    font-size: 1.6em;
    font-weight: 600;
    line-height: 1.3;
}

.news-item p {
    margin: 0 0 20px 0;
    color: var(--secondary-text-color);
    flex-grow: 1;
}

.news-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start;
    padding: 8px 16px;
    border: 1px solid var(--accent-color);
    border-radius: 50px;
    transition: background-color 0.2s, color 0.2s;
}

.news-item a:hover {
    background-color: var(--accent-color);
    color: var(--surface-color);
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-text-color);
    font-size: 0.9em;
}

@media (min-width: 600px) {
    .news-item {
        flex-direction: row;
    }

    .news-item img {
        width: 250px;
        height: auto;
    }
}

body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 1px solid #333;
}

h1 {
    font-size: 3em;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

#news-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.news-item {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.2s ease-in-out;
}

.news-item:hover {
    transform: translateY(-5px);
    border-color: #555;
}

.news-item h2 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.news-item p {
    margin: 0 0 15px 0;
    line-height: 1.6;
    color: #b0b0b0;
}

.news-item a {
    color: #bb86fc;
    text-decoration: none;
    font-weight: 600;
}

.news-item a:hover {
    background-color: var(--accent-color);
    color: var(--surface-color);
    text-decoration: none;
}

/* Modal Styles */
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#modal {
    background-color: var(--surface-color);
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

#modal-title {
    font-size: 1.4em;
    font-weight: 600;
    margin: 0;
    flex-basis: 100%;
    order: 1;
    line-height: 1.3;
}

#modal-source {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--secondary-text-color);
    order: 2;
    margin-top: 5px;
}

#modal-close {
    background: none;
    border: none;
    color: var(--primary-text-color);
    font-size: 2.5em;
    cursor: pointer;
    line-height: 1;
    order: 3;
    margin-left: auto;
    align-self: flex-start;
}

#modal-close .feather-x {
    width: 1.5em;
    height: 1.5em;
}

.modal-content {
    padding: 25px;
    overflow-y: auto;
    transition: opacity 0.2s;
}

#modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

#modal-description {
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--secondary-text-color);
    margin-bottom: 25px;
}

#modal-excerpt {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
}

#modal-excerpt p {
    font-size: 1em;
    line-height: 1.8;
    color: var(--secondary-text-color);
    margin-bottom: 1.5em;
}

#relevant-links-container {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 25px;
}

#relevant-links-container h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-text-color);
    margin: 0 0 15px 0;
}

#relevant-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#relevant-links-list li {
    margin-bottom: 10px;
}

#relevant-links-list a {
    color: var(--accent-color);
    text-decoration: none;
    transition: text-decoration 0.2s;
}

#relevant-links-list a:hover {
    text-decoration: underline;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--border-color);
    background-color: var(--background-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-full-button,
#share-button,
#copy-link,
#share-options a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-full-button {
    background-color: var(--accent-color);
    color: var(--surface-color);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.read-full-button:hover {
    opacity: 0.8;
}

.share-container {
    position: relative;
    transition: background-color 0.2s;
}

#share-button, #copy-link {
    background-color: var(--surface-color);
    color: var(--primary-text-color);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#share-button:hover, #copy-link:hover {
    background-color: #2a2a2a;
}

#share-options {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 10px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 10px;
}

#share-options a:hover, #share-options button:hover {
    background-color: #2a2a2a;
}

.description {
    font-size: 1.1em;
    color: var(--secondary-text-color);
    margin: 15px auto;
    max-width: 600px;
    line-height: 1.5;
    font-weight: 400;
} 