/**
 * Public-facing styles for the CMC Newsletter plugin
 */

.cmc-newsletter-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif !important;
	font-family: 'Poppins', sans-serif !important;
}

.cmc-newsletter-header {
    text-align: center;
    margin-bottom: 50px;
}

.cmc-newsletter-archive-title {
/*     font-size: 36px; */
    font-weight: bold;
    color: white;
    margin: 0 0 30px 0;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cmc-newsletter-filter {
    margin-top: 20px;
}

.cmc-filter-label {
    display: block;
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

#cmc-year-filter {
  background-color: #ffffff;
  border: 1px solid #ccc;
  color: #333;
  padding: 0.75rem 2.5rem 0.75rem 1rem; /* space for custom arrow */
  border-radius: 6px;
  font-size: 1rem;
  min-width: 200px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;

  /* Remove native arrow and apply consistent styling */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-clip: padding-box;
  -webkit-background-clip: padding-box;

  /* Custom dropdown arrow */
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='10' viewBox='0 0 24 24' width='10' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

#cmc-year-filter:hover,
#cmc-year-filter:focus {
  border-color: #999;
  outline: none;
}

#cmc-year-filter option {
  background-color: #fff;
  color: #333;
}



.cmc-newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cmc-newsletter-item {
    background: transparent;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* .cmc-newsletter-item:hover {
    transform: translateY(-5px);
} */

.cmc-newsletter-content {
    position: relative;
    z-index: 1;
}

.cmc-newsletter-month {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cmc-newsletter-title {
    font-size: 14px;
    color: #b8c5d1;
    margin: 0 0 25px 0;
    letter-spacing: 0.5px;
    font-weight: 500;
}



.cmc-newsletter-no-results {
    text-align: center;
    padding: 60px 20px;
    color: white;
    font-size: 18px;
}

.cmc-newsletter-loading {
    text-align: center;
    padding: 40px 20px;
    color: white;
    font-size: 16px;
}

.cmc-newsletter-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cmc-newsletter-archive {
        padding: 30px 15px;
    }
    
    .cmc-newsletter-archive-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .cmc-newsletter-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .cmc-newsletter-item {
        padding: 30px 20px;
    }
    
    .cmc-newsletter-month {
        font-size: 20px;
    }
    
    .cmc-newsletter-filter select {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .cmc-newsletter-archive-title {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .cmc-newsletter-month {
        font-size: 18px;
    }
    
    .cmc-newsletter-button {
        padding: 10px 25px;
        font-size: 13px;
    }
}

/* Dark theme compatibility */
body.dark-theme .cmc-newsletter-archive,
.dark-theme .cmc-newsletter-archive {
    background: transparent;
}

/* Ensure proper contrast on light backgrounds */
.cmc-newsletter-archive {
    background: #000f36;
    border-radius: 15px;
    position: relative;
}

.cmc-newsletter-archive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    pointer-events: none;
    border-radius: 15px;
}





