/*
Theme Name: Twitter Trends
Theme URI: https://example.com/twitter-trends
Author: Your Name
Author URI: https://example.com
Description: A custom WordPress theme for displaying Twitter trends data
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twitter-trends
*/

:root {
  --primary-color: #1d9bf0;
  --secondary-color: #0f84d0;
  --background-color: #f8f9fa;
  --card-background: #ffffff;
  --text-color: #333333;
  --text-light: #6c757d;
  --border-color: #e1e8ed;
  --success-color: #17bf63;
  --hover-color: #f5f8fa;
}

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

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
.site-header {
  background-color: var(--primary-color);
  padding: 10px 0;
  color: white;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding .logo {
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.logo .get {
  font-weight: 300;
}

.logo .daytrends {
  font-weight: 700;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 20px;
}

.location-selector {
  position: relative;
}

.location-button {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.location-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  display: none;
}

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

.dropdown-content {
  padding: 10px;
}

#location-search {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 10px;
}

.location-list {
  max-height: 300px;
  overflow-y: auto;
}

.location-item {
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
}

.location-item:hover {
  background-color: var(--hover-color);
}

.nav-links {
  display: flex;
  gap: 15px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
}

.nav-link.active,
.nav-link:hover {
  color: white;
  text-decoration: none;
}

.search-container {
  margin-left: auto;
}

#search-input {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  width: 200px;
}

#search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Main Content Styles */
.site-content {
  padding: 30px 0;
}

.trends-dashboard {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

.trends-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.trends-header h2 {
  font-size: 24px;
  font-weight: 500;
}

.info-icon {
  margin-left: 10px;
  color: var(--text-light);
  cursor: pointer;
}

.time-filters {
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.time-filter-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.time-tab {
  padding: 10px 15px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-color);
  flex: 1;
  text-align: center;
}

.time-tab.active {
  background-color: var(--card-background);
  font-weight: 500;
}

.hour-filters {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: var(--card-background);
}

.hour-tabs {
  display: flex;
  overflow-x: auto;
  gap: 5px;
  flex: 1;
  scrollbar-width: none;
}

.hour-tabs::-webkit-scrollbar {
  display: none;
}

.hour-tab {
  padding: 5px 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-light);
  white-space: nowrap;
}

.hour-tab.active {
  color: var(--primary-color);
  font-weight: 500;
}

.hour-nav {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 5px;
}

.trends-list {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.trend-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--card-background);
}

.trend-item:last-child {
  border-bottom: none;
}

.trend-rank {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-light);
  width: 30px;
}

.trend-content {
  flex: 1;
}

.trend-name {
  font-weight: 500;
  margin-bottom: 5px;
}

.trend-tweets {
  font-size: 13px;
  color: var(--text-light);
}

.trend-chart {
  width: 100px;
  height: 40px;
}

.trend-details {
  margin-left: 15px;
  color: var(--text-light);
}

/* Sidebar Styles */
.sidebar-section {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 30px;
}

.sidebar-section h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.time-period {
  font-size: 14px;
  color: var(--text-light);
  font-weight: normal;
  margin-left: 5px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 15px;
}

.hashtag-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hashtag-item {
  display: flex;
  align-items: center;
}

.hashtag-rank {
  font-size: 14px;
  color: var(--text-light);
  width: 20px;
}

.hashtag-name {
  flex: 1;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hashtag-count {
  font-size: 13px;
  color: var(--text-light);
  margin-left: 10px;
}

.hashtag-hours {
  font-size: 13px;
  color: var(--text-light);
  margin-left: 10px;
}

.view-all {
  margin-top: 15px;
  text-align: center;
}

.view-all a {
  font-size: 14px;
  font-weight: 500;
}

/* Loading State */
.loading {
  padding: 20px;
  text-align: center;
  color: var(--text-light);
}

/* Footer Styles */
.site-footer {
  background-color: var(--card-background);
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  margin-top: 30px;
}

.site-info {
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .trends-dashboard {
    grid-template-columns: 1fr;
  }

  .main-navigation {
    flex-wrap: wrap;
  }

  .search-container {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
  }

  #search-input {
    width: 100%;
  }
}

