:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #e3e3e3;
    --text-secondary: #aaaaaa;
    --search-bg: #2d2d30;
    --accent-blue: #8ab4f8;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background-color: #121212;
    position: relative;
    padding-bottom: 20px;
}

/* Top Nav */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    position: relative;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-icon {
    width: 30px;
    height: 30px;
    background-color: #5c6bc0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.tabs-icon {
    width: 24px;
    height: 24px;
    border: 2px solid var(--text-primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.menu-trigger {
    cursor: pointer;
    user-select: none;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 50px;
    right: 20px;
    background-color: #2d2d30;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    display: none; /* hidden by default */
    z-index: 100;
    overflow: hidden;
    min-width: 180px;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu ul {
    list-style: none;
}

.dropdown-menu li {
    cursor: pointer;
    font-size: 16px;
    border-bottom: 1px solid #3d3d40;
    transition: background-color 0.2s;
}

.dropdown-menu li a {
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    padding: 12px 20px;
    width: 100%;
    height: 100%;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li:hover {
    background-color: #3d3d40;
}

/* Logo */
.logo-container {
    display: flex;
    justify-content: center;
    margin: 20px 0 30px;
}

.google-logo {
    height: 40px;
    object-fit: contain;
}

/* Search Bar */
.search-bar {
    background-color: var(--search-bg);
    margin: 0 20px;
    border-radius: 30px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
}

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

.material-symbols-outlined {
    display: inline-block;
    width: 24px;
    height: 24px;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}

.search-bar .material-symbols-outlined {
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

/* Quick Links */
.quick-links {
    display: flex;
    justify-content: center;
    background-color: var(--card-bg);
    margin: 30px 20px;
    border-radius: 20px;
    padding: 20px;
    gap: 24px;
    overflow-x: auto;
}

.link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 65px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle img {
    width: 24px;
    height: 24px;
}

.link-item span {
    font-size: 12px;
    color: var(--text-secondary);
}

.punch .red-dot {
    width: 24px;
    height: 24px;
    background-color: #e53935;
    border-radius: 50%;
}

/* News Feed */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    margin: 0 10px;
    overflow: hidden;
    cursor: pointer;
}

.news-content {
    padding: 16px;
    display: flex;
    gap: 16px;
}

.news-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-text h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 16px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.source-icon {
    width: 16px;
    height: 16px;
    background-color: #e53935;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: bold;
}

.news-actions {
    margin-left: auto;
    display: flex;
    gap: 16px;
}

.news-actions .material-symbols-outlined {
    font-size: 20px;
    color: var(--text-secondary);
}

.news-thumbnail {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
}

/* Video Card Specifics */
.video-thumbnail-container {
    position: relative;
    width: 100%;
    height: 220px;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background-color: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button .material-symbols-outlined {
    color: white;
    font-size: 32px;
}

.video-duration {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
