/* 
 * Resources Page Stylesheet
 * Unlocking the Girl-Child Potential Initiative
 *
 * Color Palette:
 * - Base background: #EEEAE7 (70%)
 * - Primary accent: #ED6596 (10%)
 * - Secondary accent: #C62A7E (10%)
 * - Text: #232323 (10%)
 */

/* ===== GLOBAL STYLES ===== */
:root {
  --background-color: #EEEAE7;
  --primary-color: #ED6596;
  --secondary-color: #C62A7E;
  --text-color: #232323;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #666666;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--text-color);
}

p {
  margin-bottom: 1rem;
}

ul {
  list-style: none;
}

/* ===== BUTTON STYLES ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #a1225d;
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* ===== HEADER & NAVIGATION ===== */
#header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

#header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 15px;
}

.logo img {
  height: 60px;
  width: auto;
}

#main-nav {
  display: flex;
  align-items: center;
}

#menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

#menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--text-color);
  transition: var(--transition);
}

#nav-links {
  display: flex;
  gap: 1.5rem;
}

#nav-links li a {
  color: var(--text-color);
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
}

#nav-links li a:hover {
  color: var(--primary-color);
}

#nav-links li a.active {
  color: var(--primary-color);
}

#nav-links li a.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
}

/* ===== PAGE BANNER ===== */
#page-banner {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 7rem 0 4rem;
  text-align: center;
  margin-bottom: 2rem;
}

.resources-banner {
  background-image: linear-gradient(rgba(198, 42, 126, 0.8), rgba(237, 101, 150, 0.8)), url("https://via.placeholder.com/1600x800");
  background-size: cover;
  background-position: center;
}

#page-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

#page-banner p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* ===== RESOURCES NAVIGATION ===== */
#resources-nav {
  background-color: var(--white);
  box-shadow: var(--shadow);
  padding: 1rem 0;
  margin-bottom: 2rem;
  position: sticky;
  top: 80px;
  z-index: 90;
}

.resource-categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.resource-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border-radius: 8px;
  transition: var(--transition);
  color: var(--text-color);
}

.resource-category i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.resource-category.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.resource-category.active i {
  color: var(--white);
}

.resource-category:hover {
  background-color: var(--light-gray);
  transform: translateY(-3px);
}

.resource-category.active:hover {
  background-color: var(--secondary-color);
}

/* ===== SEARCH & FILTER SECTION ===== */
#resource-search {
  margin-bottom: 2rem;
}

.search-container {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

#resource-search-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-box {
  display: flex;
  flex: 1;
}

.search-box input {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid var(--medium-gray);
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

.search-box button {
  padding: 0.8rem 1.2rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.search-box button:hover {
  background-color: var(--secondary-color);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-controls select {
  flex: 1;
  min-width: 200px;
  padding: 0.8rem;
  border: 1px solid var(--medium-gray);
  border-radius: 4px;
  font-size: 1rem;
  background-color: var(--white);
}

/* ===== RESOURCE SECTIONS ===== */
.resource-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--medium-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.section-header i {
  margin-right: 0.5rem;
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--dark-gray);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.resource-card {
  display: flex;
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.resource-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  background-color: rgba(237, 101, 150, 0.1);
  color: var(--primary-color);
}

.resource-icon i {
  font-size: 1.8rem;
}

.resource-content {
  flex: 1;
  padding: 1.2rem;
}

.resource-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.resource-content p {
  color: var(--dark-gray);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.resource-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  background-color: rgba(237, 101, 150, 0.1);
  color: var(--primary-color);
  border-radius: 4px;
}

.resource-meta {
  display: flex;
  justify-content: space-between;
  color: var(--dark-gray);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.section-footer {
  text-align: center;
  margin-top: 1rem;
}

/* ===== MULTIMEDIA SECTION ===== */
.multimedia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.multimedia-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.multimedia-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-thumbnail, .podcast-thumbnail {
  position: relative;
  cursor: pointer;
}

.video-thumbnail img, .podcast-thumbnail img {
  width: 100%;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(198, 42, 126, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  transition: var(--transition);
}

.play-button:hover {
  background-color: var(--secondary-color);
  transform: translate(-50%, -50%) scale(1.1);
}

.multimedia-content {
  padding: 1.2rem;
}

.multimedia-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.multimedia-content p {
  color: var(--dark-gray);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* ===== FEATURED RESOURCE ===== */
#featured-resource {
  padding: 4rem 0;
  background-color: var(--white);
}

#featured-resource .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.featured-content {
  padding-right: 2rem;
}

.featured-badge {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.featured-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.featured-highlights {
  margin: 1.5rem 0;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.highlight i {
  color: var(--primary-color);
}

.featured-image img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* ===== NEWSLETTER SECTION ===== */
#newsletter {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 3rem 0;
}

.newsletter-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-content h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.newsletter-form {
  margin-top: 1.5rem;
}

.form-group {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.form-group input {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

.form-message {
  margin-top: 1rem;
  min-height: 20px;
}

/* ===== RESOURCE REQUEST SECTION ===== */
#resource-request {
  background-color: var(--light-gray);
  padding: 3rem 0;
}

.request-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
#footer {
  background-color: #232323;
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-logo img {
  height: 70px;
  margin-bottom: 1rem;
}

.footer-menu li {
  margin-bottom: 0.8rem;
}

.footer-menu a {
  color: #ccc;
}

.footer-menu a:hover {
  color: var(--primary-color);
}

.contact-info p {
  margin-bottom: 0.8rem;
}

.contact-info i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.contact-info a {
  color: #ccc;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: #ccc;
}

/* ===== BACK TO TOP BUTTON ===== */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  z-index: 1000;
  display: none;
}

.cookie-banner .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-banner p {
  margin-bottom: 0;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

/* ===== NO RESULTS MESSAGE ===== */
.no-results-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  background-color: rgba(237, 101, 150, 0.05);
  border-radius: 8px;
}

.no-results-message p {
  color: var(--dark-gray);
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 992px) {
  .featured-content {
    padding-right: 0;
  }
  
  #featured-resource .container {
    grid-template-columns: 1fr;
  }
  
  .featured-image {
    text-align: center;
    margin-top: 2rem;
  }
  
  .featured-image img {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  #header .container {
    padding: 0.8rem 15px;
  }
  
  #menu-toggle {
    display: block;
  }
  
  #nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  #nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  #nav-links li {
    width: 100%;
    text-align: center;
  }
  
  #nav-links li a {
    display: block;
    padding: 0.8rem 0;
  }
  
  #nav-links li a.active::after {
    display: none;
  }
  
  #page-banner {
    padding: 6rem 0 3rem;
  }
  
  #page-banner h1 {
    font-size: 2rem;
  }
  
  .resources-grid, .multimedia-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group {
    flex-direction: column;
  }
  
  .form-group input {
    border-radius: 4px;
    margin-bottom: 0.5rem;
  }
  
  .form-group button {
    border-radius: 4px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .resource-category {
    flex: 0 0 calc(50% - 0.5rem);
  }
  
  .filter-controls {
    flex-direction: column;
  }
  
  .resource-card {
    flex-direction: column;
  }
  
  .resource-icon {
    width: 100%;
    padding: 1rem 0;
  }
  
  .cookie-banner .container {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    margin: 0 auto;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.resource-card, .multimedia-card {
  animation: slideUp 0.5s ease forwards;
}

/* Stagger animation for cards */
.resources-grid .resource-card:nth-child(1) { animation-delay: 0.1s; }
.resources-grid .resource-card:nth-child(2) { animation-delay: 0.2s; }
.resources-grid .resource-card:nth-child(3) { animation-delay: 0.3s; }
.resources-grid .resource-card:nth-child(4) { animation-delay: 0.4s; }

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
select:focus {
  outline: 3px solid rgba(237, 101, 150, 0.5);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  #header,
  #resources-nav,
  #resource-search,
  #newsletter,
  #back-to-top,
  .cookie-banner {
    display: none !important;
  }
  
  #page-banner {
    background-image: none !important;
    background-color: var(--white) !important;
    color: var(--text-color) !important;
    padding: 1rem 0 !important;
  }
  
  #page-banner h1 {
    color: var(--text-color) !important;
  }
  
  .resource-card,
  .multimedia-card {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid var(--medium-gray) !important;
  }
  
  .play-button {
    background-color: transparent !important;
    border: 2px solid var(--text-color) !important;
    color: var(--text-color) !important;
  }
  
  a {
    color: var(--text-color) !important;
    text-decoration: underline !important;
  }
  
  .btn {
    border: 1px solid var(--text-color) !important;
    background-color: transparent !important;
    color: var(--text-color) !important;
  }
  
  #footer {
    background-color: var(--white) !important;
    color: var(--text-color) !important;
    border-top: 1px solid var(--medium-gray) !important;
  }
  
  .footer-col h3 {
    color: var(--text-color) !important;
  }
  
  .footer-menu a,
  .contact-info a,
  .footer-links a {
    color: var(--text-color) !important;
  }
  
  .social-links a {
    background-color: transparent !important;
    border: 1px solid var(--text-color) !important;
    color: var(--text-color) !important;
  }
}