:root {
  --primary-color: #e60023; /* Pinterest Red */
  --secondary-color: #405de6; /* Instagram Blue */
  --accent-color: #c13584; /* Instagram Purple */
  --facebook-color: #1877f2; /* Facebook Blue */
  --background-color: #ffffff;
  --background-alt: #f5f5f5; /* Light Gray */
  --text-color: #2b2b2b; /* Dark Gray */
  --text-secondary: #8c8c8c; /* Medium Gray */
  --header-height: 60px;
  --max-width: 1200px;
  --border-radius: 8px;
}

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

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

header {
  position: sticky;
  top: 0;
  background-color: var(--background-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-content a {
  text-decoration: none;
}

.header-content a strong {
  font-size: 24px;
  color: var(--text-color);
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--secondary-color);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
}

.hero {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--background-alt);
}

.hero-logo {
  width: 400px;
  max-width: 100%;
  height: auto;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--secondary-color);
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 30px;
}

.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--facebook-color);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #1464d9;
}

.cta-button:nth-child(2) {
  background-color: var(--secondary-color);
}

.cta-button:nth-child(2):hover {
  background-color: #3651c9;
}

.cta-button.secondary {
  background-color: var(--primary-color);
}

.cta-button.secondary:hover {
  background-color: #cc001f;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
  text-align: left;
}

.feature-item {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
}

.feature-item h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.auth-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .features-list {
    grid-template-columns: 1fr;
  }

  .auth-buttons {
    flex-direction: column;
  }

  .cta-button.secondary {
    margin-left: 0;
    margin-top: 1rem;
  }
}

footer {
  background-color: var(--background-alt);
  padding: 20px 0;
  text-align: center;
  margin-top: 40px;
}

footer p {
  margin-bottom: 10px;
}

.legal-links {
  font-size: 0.8em;
  color: var(--text-secondary);
  margin-top: 10px;
}

.legal-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 10px;
}

.legal-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    height: auto;
    padding: 10px 20px;
  }

  nav ul {
    margin-top: 10px;
  }

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

  .hero p {
    font-size: 1rem;
    padding: 0 20px;
  }

  .hero-logo {
    width: 150px;
  }
}

/* User Profile Styles */
.user-profile {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 6px;
}

.profile-status.success {
  background-color: #d4edda;
  color: #155724;
}

.status-icon {
  font-size: 1.2em;
  font-weight: bold;
}

.connected-accounts {
  margin-top: 20px;
}

.connected-accounts h3 {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333;
}

#account-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.account-item .platform-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.account-item .account-name {
  font-weight: 500;
}

/* User header and avatar styles */
.user-header-area {
  display: none; /* Initially hidden until user is authenticated */
  position: relative;
}

.user-avatar-container {
  position: relative;
  cursor: pointer;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ddd;
  overflow: hidden;
  cursor: pointer;
}

.user-avatar.initials-avatar {
  font-size: 18px;
  text-transform: uppercase;
}

.user-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  width: 200px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 15px;
  z-index: 1000;
  display: none;
}

.user-avatar-container:hover .user-dropdown {
  display: block;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-info #user-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.user-info small {
  color: var(--text-secondary);
  font-size: 0.8em;
}

.user-dropdown hr {
  margin: 10px 0;
  border: none;
  border-top: 1px solid #eee;
}

.user-dropdown a {
  color: var(--text-color);
  text-decoration: none;
  display: block;
  padding: 5px 0;
}

.user-dropdown a:hover {
  color: var(--secondary-color);
}

/* Connected button styles */
.cta-button.connected {
  background-color: #28a745;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-button.connected:hover {
  background-color: #218838;
}

.cta-button.connected .status {
  font-size: 0.8em;
  opacity: 0.9;
}
