@charset "utf-8";
/* CSS Document */
/* Mobile-first responsive styles for State Symbols page */

.main-content {
    min-height: 100vh;
	margin-top: 20px;
}

@media (min-width:1024px) {
	.main-content {
		margin-top: 5vh;
		position:relative;
		z-index: 5;
	}
}

/* ====== PLAY BUTTON ====== */
.play {
  padding: 10px;
  margin-right: 16px;
  margin-bottom: 15px;
  margin-top: 15px;
  background: rgba(0, 51, 102, 1);
  font-family: "bebas-neue-pro", sans-serif;
  font-size: 1.15em;
  text-transform: uppercase;
  border-radius: 15px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  color: white;
  text-decoration: none;
  text-align: center;
}

.play:hover {
  background: rgba(0, 51, 102, 0.9);
  border-color: #da9434;
  transform: translateY(-2px);
}

.play i {
  transition: transform 0.3s ease;
}

.play:hover i {
  transform: translateX(5px);
}

.fa-circle-chevron-right {
  color: #da9434;
}

/* ====== ACCESSIBILITY ====== */
.play:focus {
  outline: 3px solid #da9434;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .play,
  .play i {
    transition: none;
    transform: none;
  }
 
  .play:hover {
    transform: none;
  }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Controls Section */
.controls-section {
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-box button {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: color 0.2s ease;
}

.search-box button:hover {
    color: #3b82f6;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #d1d5db;
    background: rgba(27,27,86,1.00);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
	color: white;
}

.filter-btn:hover {
    border-color: #DA9434;
    color: goldenrod;
}

.filter-btn.active {
    background: #DA9434;
    border-color: rgba(27,27,86,1.00);
    color: white;
}

/* Symbols Grid */
.symbols-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Symbol Cards - Modified for consistent height and scrolling */
.symbol-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    height: 600px; /* Fixed height for mobile */
}

.symbol-card h4{
	font-size:1.4rem
}

.symbol-card ul{
	padding-left:10px;
	padding-right:10px;
	margin-top:0;
	padding-top:0;
	list-style-position:inside;
}

.symbol-card li{
	display:flex;
	margin-bottom:8px;
	list-style:none;
}

.symbol-card li strong{
	min-width: 80px;
	flex-shrink:0;
	text-align:right;
	padding-right:10px;
}

.symbol-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.symbol-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f3f4f6;
	flex-shrink:0;
}

.symbol-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.symbol-card:hover .symbol-image img {
    transform: scale(1.05);
}

/* Modified content area for scrolling */
.symbol-content {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Webkit scrollbar styling */
.symbol-content::-webkit-scrollbar {
    width: 6px;
}

.symbol-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.symbol-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.symbol-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.symbol-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.25rem 0;
}

.symbol-name {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.symbol-description {
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.symbol-quote {
    margin: 1rem 0;
    padding: 1rem 1.75rem;
    border-left: 4px solid #0066cc;
    background-color: #f8f9fa;
    font-style: italic;
	border-radius: 0 4px 4px 0;
	position: relative;
}

.symbol-quote::before {
	content: '\f10d'; 
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.5rem;
    color: #0066cc;
    position: absolute;
    top: .5rem;
    left: 0;
    opacity: 0.6;
}

.symbol-quote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9em;
    font-style: normal;
    color: #666;
}

.symbol-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
	margin-top: auto; /* Push to bottom of scrollable area */
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.adoption-year {
    font-weight: 600;
    color: #059669;
}

.scientific-name,
.translation {
    font-style: italic;
}

/* Resources Section */
.symbol-resources {
    margin: 1.5rem 0 1rem 0;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
}

.resources-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0;
    background: none;
    border: none;
    font-size: 0.975rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s ease;
    border-radius: 4px;
}

.resources-toggle:hover,
.resources-toggle:focus {
    color: #3b82f6;
    outline: none;
}

.resources-toggle:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.resources-toggle__icon {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.resources-toggle[aria-expanded="true"] .resources-toggle__icon {
    transform: rotate(180deg);
}

.resources-list {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.resources-list[hidden] {
    display: none;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8125rem;
    color: #374151;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.resource-link:hover,
.resource-link:focus {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
    transform: translateX(2px);
}

.resource-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.resource-icon {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.resource-link:hover .resource-icon,
.resource-link:focus .resource-icon {
    opacity: 1;
}

/* Ensure resources don't interfere with symbol-meta positioning */
.symbol-content {
    display: flex;
    flex-direction: column;
}

.symbol-meta {
    margin-top: auto;
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .resource-link {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
    
    .resource-icon {
        width: 12px;
        height: 12px;
    }
    
    .resources-toggle {
        font-size: 0.8125rem;
    }
}

/* Tablet and up */
@media (min-width: 768px) {
    .symbols-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .symbols-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .symbols-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.no-results h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Hidden state for filtering */
.symbol-card.hidden {
    display: none;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 1.125rem;
    }

    .symbols-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
	
	.symbol-card {
        height: 650px; /* Slightly taller for tablet */
    }

    .controls-section {
        display: flex;
        align-items: flex-end;
        gap: 2rem;
    }

    .search-box {
        flex: 1;
        margin-bottom: 0;
        max-width: 400px;
    }

    .filter-tabs {
        flex-shrink: 0;
    }

    .symbol-content {
        padding: 2rem;
    }

    .symbol-meta {
        flex-direction: row;
        gap: 1rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .page-title {
        font-size: 3rem;
    }

    .symbols-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
	
	.symbol-card {
        height: 700px; /* Taller for desktop */
    }

    .hero-section {
        padding: 3rem 0;
    }

    .controls-section {
        padding: 3rem 0;
    }
}


/* Accessibility & Motion */
@media (prefers-reduced-motion: reduce) {
    .symbol-card,
    .symbol-image img,
    .filter-btn,
    .search-box input,
    .search-box button {
        transition: none;
    }

    .symbol-card:hover {
        transform: none;
    }

    .symbol-card:hover .symbol-image img {
        transform: none;
    }
}

/* Focus styles for accessibility */
.filter-btn:focus,
.search-box input:focus,
.search-box button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .controls-section {
        display: none;
    }
    
    .symbol-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
        height: auto; /* Remove fixed height for print */
        overflow: visible;
    }
    
    .symbol-content {
        overflow: visible;
    }
    
    .symbols-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

