/* DailyMarket - CSS Styles */

/* Base Styles */
:root {
  --primary-color: #7a5195;
  --secondary-color: #ef5675;
  --accent-color: #3aa6b9;
  --text-color: #333333;
  --light-text: #6e6e6e;
  --background-color: #ffffff;
  --light-bg: #f8f9fa;
  --medium-bg: #f0f0f0;
  --dark-bg: #212529;
  --border-color: #e5e5e5;
  --success-color: #4caf50;
  --error-color: #f44336;
  --container-width: 1200px;
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --transition: all 0.3s ease-in-out;
  --rounded-sm: 4px;
  --rounded-md: 8px;
  --rounded-lg: 16px;
}

/* Dark Mode Theme */
[data-theme="dark"] {
  --primary-color: #9b6dc6;
  --secondary-color: #ff7e9d;
  --accent-color: #4dc4d9;
  --text-color: #e5e5e5;
  --light-text: #b0b0b0;
  --background-color: #121212;
  --light-bg: #1e1e1e;
  --medium-bg: #2a2a2a;
  --dark-bg: #121212;
  --border-color: #3a3a3a;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2rem;
}

blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  border-left: 4px solid var(--primary-color);
  padding: 1rem 0 1rem 2rem;
  margin: 2rem 0;
  background-color: var(--light-bg);
  border-radius: var(--rounded-sm);
}

blockquote p {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

blockquote cite {
  font-size: 0.875rem;
  font-style: normal;
  color: var(--light-text);
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--rounded-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary {
  background-color: var(--primary-color);
}

.btn-block {
  display: block;
  width: 100%;
}

/* Header & Navigation */
header {
  background-color: var(--background-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
}

.logo img {
  height: 40px;
  margin-right: 0.75rem;
  border-radius: 50%;
}

.logo span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

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

nav ul {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 3px 0;
  transition: var(--transition);
}

/* Theme Switcher */
.theme-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
}

.theme-switcher button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.theme-switcher button:hover {
  background-color: var(--secondary-color);
  transform: scale(1.1);
}

/* Date Time Display */
.datetime {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--rounded-sm);
  font-size: 0.875rem;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  background-color: var(--light-bg);
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  font-size: 3rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-image {
  flex: 1;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Featured Posts Section */
.featured-posts {
  padding: 5rem 0;
}

.featured-posts h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.post-card {
  background-color: var(--background-color);
  border-radius: var(--rounded-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.post-image {
  height: 220px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.post-content p {
  color: var(--light-text);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.read-more {
  display: inline-block;
  font-weight: 600;
  color: var(--primary-color);
  position: relative;
}

.read-more::after {
  content: '→';
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover::after {
  margin-left: 10px;
}

.view-all {
  text-align: center;
}

/* Newsletter Section */
.newsletter {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content h2 {
  color: white;
  margin-bottom: 1rem;
}

.newsletter-content p {
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--rounded-sm);
  outline: none;
}

.newsletter-form .btn {
  background-color: white;
  color: var(--primary-color);
}

.newsletter-form .btn:hover {
  background-color: var(--light-bg);
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 1rem;
  border-radius: 50%;
}

.footer-logo p {
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-links h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-contact i {
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.social-icons svg {
  width: 18px;
  height: 18px;
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--dark-bg);
  color: white;
  padding: 1.5rem;
  z-index: 9999;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.5s ease-in-out;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content p {
  margin-bottom: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cookie-content a {
  color: var(--accent-color);
  font-size: 0.875rem;
}

/* Page Header */
.page-header {
  background-color: var(--light-bg);
  padding: 4rem 0;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--light-text);
}

/* Blog Page Styles */
.blog-grid {
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.blog-grid .post-card {
  display: flex;
  flex-direction: column;
}

.blog-grid .post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--light-text);
}

.post-meta .category {
  color: var(--primary-color);
  font-weight: 600;
}

/* Single Post Page */
.blog-post {
  padding: 4rem 0;
}

.post-header {
  margin-bottom: 3rem;
}

.post-header h1 {
  margin-bottom: 1.5rem;
}

.post-featured-image {
  margin-top: 2rem;
  border-radius: var(--rounded-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.post-image-container {
  margin: 2rem 0;
  border-radius: var(--rounded-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.post-image-container figcaption {
  padding: 0.75rem;
  background-color: var(--light-bg);
  font-size: 0.875rem;
  color: var(--light-text);
  text-align: center;
}

.post-tags {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.post-tags span {
  font-weight: 600;
}

.post-tags a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--light-bg);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--light-text);
  transition: var(--transition);
}

.post-tags a:hover {
  background-color: var(--primary-color);
  color: white;
}

.post-author {
  margin-top: 4rem;
  padding: 2rem;
  background-color: var(--light-bg);
  border-radius: var(--rounded-md);
  display: flex;
  gap: 2rem;
  align-items: center;
}

.author-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-bio h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--light-text);
  margin-bottom: 0.5rem;
}

.author-bio h4 {
  margin-bottom: 0.75rem;
}

.author-bio p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.post-navigation {
  margin-top: 4rem;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0;
}

.nav-previous,
.nav-next {
  max-width: 40%;
}

.nav-previous a,
.nav-next a {
  display: flex;
  flex-direction: column;
}

.nav-subtitle {
  font-size: 0.875rem;
  color: var(--light-text);
  margin-bottom: 0.5rem;
}

.nav-title {
  font-weight: 600;
}

.nav-next {
  text-align: right;
}

.nav-next .nav-subtitle,
.nav-next .nav-title {
  margin-left: auto;
}

.related-posts {
  padding: 4rem 0;
  background-color: var(--light-bg);
}

.related-posts h2 {
  text-align: center;
  margin-bottom: 3rem;
}

/* About Page */
.about-intro {
  padding: 4rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: var(--rounded-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.team {
  padding: 4rem 0;
  background-color: var(--light-bg);
}

.team h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
  background-color: var(--background-color);
  border-radius: var(--rounded-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-member img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-member h3 {
  margin: 1rem 0 0.25rem;
  font-size: 1.25rem;
}

.team-member p {
  padding: 0 1rem;
  margin-bottom: 1rem;
}

.team-member p:first-of-type {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
}

.team-member p:last-of-type {
  font-size: 0.875rem;
  color: var(--light-text);
}

.values {
  padding: 4rem 0;
}

.values h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: var(--rounded-md);
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.value-card h3 {
  margin-bottom: 1rem;
}

.value-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.join-us {
  padding: 5rem 0;
  background-color: var(--primary-color);
  color: white;
}

.join-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.join-content h2 {
  color: white;
}

.join-content .btn {
  background-color: white;
  color: var(--primary-color);
  margin-top: 1rem;
}

.join-content .btn:hover {
  background-color: var(--light-bg);
}

/* Contact Page */
.contact-section {
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h2 {
  margin-bottom: 2rem;
}

.contact-info p {
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.info-icon {
  margin-right: 1rem;
  width: 24px;
  height: 24px;
  color: var(--primary-color);
}

.info-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.info-item p {
  margin-bottom: 0;
  color: var(--light-text);
}

.social-contact h3 {
  margin-bottom: 1rem;
}

.contact-form-container h2 {
  margin-bottom: 2rem;
}

.contact-form {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: var(--rounded-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-sm);
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-main);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(122, 81, 149, 0.2);
}

.map-section {
  padding: 4rem 0;
  background-color: var(--light-bg);
}

.map-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.map-container {
  border-radius: var(--rounded-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--background-color);
  padding: 2rem;
  border-radius: var(--rounded-md);
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--light-text);
  transition: var(--transition);
}

.close:hover {
  color: var(--text-color);
}

.thank-you-message {
  text-align: center;
}

.thank-you-message svg {
  color: var(--success-color);
  margin-bottom: 1rem;
}

.thank-you-message h2 {
  margin-bottom: 1rem;
}

.thank-you-message p {
  margin-bottom: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form .btn {
    width: 100%;
  }
  
  .post-author {
    flex-direction: column;
    text-align: center;
  }
  
  .author-image {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--background-color);
    padding: 5rem 2rem;
    transition: 0.5s;
    box-shadow: var(--shadow-lg);
  }
  
  nav.show {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    gap: 2rem;
  }
  
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .datetime {
    display: none;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 2rem;
  }
  
  .nav-previous,
  .nav-next {
    max-width: 100%;
  }
  
  .nav-next {
    text-align: left;
  }
  
  .nav-next .nav-subtitle,
  .nav-next .nav-title {
    margin-left: 0;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .featured-posts,
  .blog-posts,
  .about-intro,
  .team,
  .values,
  .contact-section {
    padding: 3rem 0;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter {
    padding: 3rem 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
