/*
Theme Name: TubePilot
Theme URI: https://example.com/tubepilot-theme
Author: Your Name
Author URI: https://example.com
Description: A clean WordPress theme inspired by TubePilot for showcasing YouTube tools
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tubepilot
*/

:root {
  --primary-color: #1a73e8;
  --text-color: #333333;
  --light-gray: #f5f5f5;
  --border-color: #e0e0e0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  background-color: #ffffff;
  line-height: 1.6;
}

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

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

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.site-title a {
  color: var(--text-color);
}

.site-description {
  font-size: 12px;
  color: #666;
  margin: 0;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  margin-left: 20px;
  position: relative;
}

.main-navigation a {
  color: var(--text-color);
  font-size: 16px;
}

.main-navigation a:hover {
  color: var(--primary-color);
}

.has-dropdown::after {
  content: "▼";
  font-size: 8px;
  margin-left: 5px;
  vertical-align: middle;
}

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

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  padding: 10px 15px;
  display: block;
}

.dropdown-menu a:hover {
  background: var(--light-gray);
}

.has-dropdown:hover .dropdown-menu {
  display: block;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.button-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.button-primary:hover {
  background-color: #0d62d0;
  color: white;
}

.button-icon {
  margin-right: 8px;
}

/* Section Headings */
.section-heading {
  text-align: center;
  margin: 40px 0 30px;
  position: relative;
}

.section-heading h2 {
  display: inline-block;
  background: white;
  padding: 0 20px;
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.section-heading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
  z-index: 0;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.tool-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.tool-image {
  height: 150px;
  background: var(--light-gray);
}

.tool-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-content {
  padding: 15px;
}

.tool-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}

.tool-description {
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--light-gray);
  padding: 40px 0;
  margin-top: 60px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer-widget h3 {
  font-size: 18px;
  margin-top: 0;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  color: #666;
}

/* Support Button */
.support-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 999;
}

.support-button:hover {
  background: #0d62d0;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-navigation {
    margin-top: 15px;
    width: 100%;
  }

  .main-navigation ul {
    flex-direction: column;
  }

  .main-navigation li {
    margin: 5px 0;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    display: block;
    padding-left: 15px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }
}
