:root {
    --primary-color: #6c3483;  /* Deep Purple */
    --secondary-color: #3498db;
    --accent-color: #8e44ad;  /* Purple */
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

body.dark-mode {
    background-color: #181828;
    color: #f5f6fa;
}

body.dark-mode header,
body.dark-mode footer {
    background-color: #2d1457;
}

body.dark-mode .card,
body.dark-mode .news-item {
    background: #231942;
    color: #f5f6fa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

body.dark-mode .content-section h2,
body.dark-mode .card h3,
body.dark-mode .news-item h3 {
    color: #b983ff;
}

body.dark-mode .news-meta,
body.dark-mode .card .date {
    color: #a084ca;
}

body.dark-mode .read-more,
body.dark-mode .news-item a {
    color: #b983ff;
}

body.dark-mode .read-more:hover,
body.dark-mode .news-item a:hover {
    color: #f5f6fa;
}

body.dark-mode .nav-links a,
body.dark-mode .nav-links a.active {
    background: none;
    color: #f5f6fa;
}

body.dark-mode .nav-links a:hover {
    background-color: #8e44ad;
    color: #fff;
}

header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: white;
    font-size: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-right: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--secondary-color);
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.content-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.content-section h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card .date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card .description {
    margin-bottom: 1rem;
}

.platform-location {
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: rgba(128, 0, 32, 0.05);
    border-radius: 4px;
}

.platform-location .platform,
.platform-location .location {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.platform-location i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-links a {
        margin: 0;
    }

    .hero h2 {
        font-size: 2rem;
    }
}

.news-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.news-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.news-meta i {
    margin-right: 0.5rem;
}

.news-item .description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more i {
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

.read-more:hover {
    color: var(--secondary-color);
}

.news-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    z-index: 1000;
    height: 40px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.ticker-label {
    background: var(--accent-color);
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    white-space: nowrap;
}

.ticker-label i {
    margin-right: 0.5rem;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    height: 100%;
    padding-left: 1rem;
    background: var(--primary-color);
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100%;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.ticker-item:hover {
    color: var(--accent-color);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Adjust main content to prevent overlap with ticker */
main {
    margin-bottom: 40px;
}

/* Adjust footer to appear above ticker */
footer {
    position: relative;
    z-index: 1001;
    margin-bottom: 40px;
}

.news-window {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    z-index: 1000;
    height: 120px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    height: 40px;
}

.news-title {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-controls {
    display: flex;
    gap: 0.5rem;
}

.news-control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.news-control-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.news-content {
    padding: 1rem;
    height: calc(100% - 40px);
    overflow: hidden;
    position: relative;
}

.news-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding-right: 1rem;
}

.news-item.active {
    opacity: 1;
}

.news-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.news-item .news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.news-item .description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.news-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.news-item a:hover {
    color: white;
}

/* Adjust main content to prevent overlap with news window */
main {
    margin-bottom: 120px;
}

/* Adjust footer to appear above news window */
footer {
    position: relative;
    z-index: 1001;
    margin-bottom: 120px;
}

#dark-mode-toggle {
    background: none;
    border: none;
    color: #8e44ad;
    font-size: 1.3rem;
    cursor: pointer;
    margin-left: 1rem;
    transition: color 0.3s;
}
#dark-mode-toggle:hover {
    color: #b983ff;
}

body.dark-mode #dark-mode-toggle {
    color: #b983ff;
}
body.dark-mode #dark-mode-toggle:hover {
    color: #fff;
}

#daily-goal-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

#daily-goal-box {
    background: linear-gradient(135deg, #b983ff 0%, #8e44ad 100%);
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(142, 68, 173, 0.15);
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 420px;
    margin: 0 auto;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: box-shadow 0.3s;
}

#daily-goal-box:hover {
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.25);
}

#daily-goal-text {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    min-height: 2.5em;
    line-height: 1.4;
}

#new-goal-btn {
    background: linear-gradient(90deg, #a084ca 0%, #8e44ad 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0.75rem 2.2rem;
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(142, 68, 173, 0.15);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    outline: none;
}

#new-goal-btn:hover, #new-goal-btn:focus {
    background: linear-gradient(90deg, #8e44ad 0%, #6c3483 100%);
    box-shadow: 0 4px 16px rgba(142, 68, 173, 0.25);
    transform: translateY(-2px) scale(1.04);
}

#sticky-notes-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

#sticky-notes-widget {
    background: linear-gradient(135deg, #f3e9ff 0%, #e0c3fc 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(142, 68, 173, 0.10);
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

#add-note-btn {
    background: linear-gradient(90deg, #a084ca 0%, #8e44ad 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0.7rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(142, 68, 173, 0.12);
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    outline: none;
}
#add-note-btn:hover, #add-note-btn:focus {
    background: linear-gradient(90deg, #8e44ad 0%, #6c3483 100%);
    box-shadow: 0 4px 16px rgba(142, 68, 173, 0.18);
    transform: translateY(-2px) scale(1.04);
}

#notes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    width: 100%;
}

.sticky-note {
    background: linear-gradient(135deg, #fffbe7 0%, #ffe6fa 100%);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(142, 68, 173, 0.10);
    padding: 1rem 1rem 2.2rem 1rem;
    min-width: 180px;
    max-width: 220px;
    min-height: 120px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: box-shadow 0.3s, transform 0.2s;
}
.sticky-note:hover {
    box-shadow: 0 6px 24px rgba(142, 68, 173, 0.18);
    transform: translateY(-2px) scale(1.03);
}
.sticky-note textarea {
    background: transparent;
    border: none;
    resize: none;
    width: 100%;
    height: 80px;
    font-size: 1rem;
    color: #6c3483;
    font-family: inherit;
    outline: none;
    padding: 0;
    margin-bottom: 0.5rem;
}
.sticky-note textarea:focus {
    background: #f3e9ff;
}
.delete-note-btn {
    position: absolute;
    bottom: 0.5rem;
    right: 0.7rem;
    background: none;
    border: none;
    color: #8e44ad;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0.2rem;
}
.delete-note-btn:hover {
    color: #c0392b;
} 