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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

::-webkit-scrollbar {
    width: 8px;
}

.container {
    display: flex;
}

.gap {
    height: 242px;
}


@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.logo-subtitle {
    font-size: 11px;
    color: #71717a;
    margin-top: 4px;
}

.info-card {
    background: linear-gradient(135deg, #9333ea, #ec4899);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.info-card h3 {
    font-size: 14px;
    margin-bottom: 4px;
}

.info-card p {
    font-size: 12px;
    opacity: 0.9;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.filter-bar-container {
    padding: 24px 24px 16px;
    animation: slideInDown 0.4s ease;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.filter-bar {
    background: #0a0a0a;
    backdrop-filter: blur(20px);
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #71717a;
    pointer-events: none;
    transition: color 0.2s;
}

.search-box input:focus + .search-icon {
    color: #c084fc;
}

.search-box input {
    width: 100%;
    background: #121212;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    padding: 10px 10px 10px 40px;
    color: #f1f5f9;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.search-box input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

select {
    background: #121212;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    padding: 10px 16px;
    color: #f1f5f9;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    text-align: left;
    
}

select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: #27272a;
    padding: 4px;
    border-radius: 8px;
}

.view-btn {
    padding: 8px;
    background: none;
    border: none;
    color: #a1a1aa;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.view-btn:hover {
    color: #e4e4e7;
}

.view-btn.active {
    background: #9333ea;
    color: white;
}

/* Resources Section */
.resources-section {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 24px;
}

.resources-section::-webkit-scrollbar {
    width: 8px;
}

.resources-section::-webkit-scrollbar-track {
    background: #18181b;
}

.resources-section::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 4px;
}

.resources-section::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}

.resources-header {
    margin-bottom: 16px;
}

.resources-header h2 {
    font-size: 20px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.resources-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Resource Card */
.resource-card {
    background: #121212;
    border: 1px solid #27272a;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: scaleIn 0.4s ease backwards;
    display: flex;
    flex-direction: column;
    will-change: transform, border-color, box-shadow;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.resource-card:hover {
    border-color: #797979;
}

.resource-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s;
}
.resource-image-effect {
    width: 100%;
    height: 160px;
    object-fit: contain;
    margin-top: 24px;
    transition: transform 0.3s;
}

.resource-card:hover .resource-image .resource-image-effect {
    transform: scale(1.05);
}

.resource-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.resource-title {
    font-size: 16px;
    font-weight: 600;
    color: #f1f5f9;
    flex: 1;
}

.resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    margin-bottom: 6px;
}

.tag {
    padding: 4px 10px;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
    color: #a1a1aa;
    transition: all 0.2s;
}

.tag:hover {
    background: #3f3f46;
    color: #e4e4e7;
    border-color: #52525b;
}

.resource-description {
    font-size: 14px;
    color: #a1a1aa;
    margin-bottom: 12px;
}

.resource-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: auto;
}

.resource-actions > *:only-child {
  grid-column: span 2;
}

.action-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.download-btn {
    background: #27272a;
    color: white;
}

.download-btn:hover {
    background: #6366f1;
    transform: translateY(-2px);
}

.link-btn {
    background: #27272a;
    color: #f1f5f9;
    border: 1px solid #3f3f46;
}

.link-btn:hover {
    background: #3f3f46;
    border-color: #52525b;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 32px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #27272a;
}

.section-header:first-child {
    margin-top: 0;
}

.section-icon {
    width: 24px;
    height: 24px;
    color: #9333ea;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #f1f5f9;
}

/* Icons */
.icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #71717a;
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.hyperlink {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.2s;
}

/* Image Modal */

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.resource-image {
    cursor: zoom-in;
}


@media (max-width: 768px) {
    .resources-section {
        margin-bottom: 80px;
    }
}

/* Footer */
.site-footer {
    background: #0a0a0a;
    border-top: 1px solid #27272a;
    margin-top: 80px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 48px;
}

.footer-brand h3 {
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 14px;
    color: #a1a1aa;
    line-height: 1.6;
    max-width: 420px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-links h4 {
    font-size: 12px;
    font-weight: 600;
    color: #e4e4e7;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: #a1a1aa;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #c084fc;
}

.footer-bottom {
    border-top: 1px solid #27272a;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #71717a;
}

.footer-muted {
    color: #52525b;
}

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}


.footer-links p {
  font-size: 14px;
  color: #a1a1aa;
  margin-bottom: 8px;
}

.filter-toggle-btn {
  display: none;
}

@media (max-width: 768px) {
  .mobile-collapsible {
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
  }

  .mobile-collapsible.hidden {
    transform: translateY(-100%);
  }

  .filter-toggle-btn {
    display: block;
    position: sticky;
    top: 8px;
    margin: 0 auto 8px;
    background: #121212;
    color: #f1f5f9;
    border: 1px solid #3f3f46;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    z-index: 101;
  }
}

.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.favorite-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.favorite-btn:active {
    transform: scale(0.95);
}

.star-icon {
    width: 20px;
    height: 20px;
    color: #ffd700;
    transition: all 0.2s ease;
}

.favorite-btn:not(.favorited) .star-icon {
    color: #999;
}

.favorite-btn.favorited {
    background: rgba(255, 215, 0, 0.1);
}

.favorite-btn.favorited .star-icon {
    color: #ffd700;
    fill: #ffd700;
}

.exportimportbuttons {
    background: #121212;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    padding: 10px 16px;
    color: #f1f5f9;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    text-align: left;
}

.favorites-actions {
    display: flex;
    gap: 10px;
    height: fit-content;
    margin-top: 15px;
    margin-bottom: 15px;
    align-items: center;
    align-content: center;
    justify-content: center;
}

.resource-card {
    position: relative;
}

@media (max-width: 768px) {
    .favorite-btn {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }
    
    .star-icon {
        width: 18px;
        height: 18px;
    }
    
    .favorites-actions {
        margin-left: 25px;
        margin-right: 25px;
    }
    
    .favorites-actions button {
        flex: 1;
    }
}

.resource-card {
  position: relative;
}

.resource-id {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 11px;
  color: #9ca3af;
  background: rgba(0, 0, 0, 0.55);
  padding: 2px 6px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 9999999999999999999;
}

#copyToast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 9999;
}

#copyToast.show {
  opacity: 1;
}


.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.copy-id-btn {
  flex: 1 1 100%;
}

.fav-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.fav-modal-box {
  background: #111;
  color: #fff;
  width: 420px;
  padding: 16px;
  border-radius: 10px;
}

.fav-modal-actions {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}

.fav-modal-actions button,
.fav-modal-footer button {
  flex: 1;
  padding: 8px;
  cursor: pointer;
}

.fav-modal textarea {
  width: 100%;
  height: 140px;
  margin-top: 10px;
  resize: vertical;

  background: #0b0b0b;
  color: #eaeaea;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 10px;
  font-family: monospace;
}

.fav-modal textarea::placeholder {
  color: #777;
}

.fav-modal textarea:focus {
  outline: none;
  border-color: #555;
}

.hidden {
  display: none;
}

.collapsible-header {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.collapse-arrow {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.collapse-arrow.collapsed {
  transform: rotate(-90deg);
}

.section-header:hover .collapse-arrow {
  opacity: 0.8;
}


.resources-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.collapse-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.collapse-btn {
  padding: 6px 14px;
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #f1f5f9;
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 768px) {

  body {
    overflow-y: auto;
  }

  .main-content {
    height: auto;
    min-height: 100vh;
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: #0a0a0a;
  }

  .filter-bar-container {
    top: 56px; 
    z-index: 1500;
    background: #0a0a0a;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .resources-section {
    overflow-y: visible;
    height: auto;
    padding-top: 12px;
  }

  .resources-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .collapse-controls {
    margin-top: 6px;
    width: 100%;
  }

  .collapse-btn {
    width: 100%;
    text-align: center;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0a0a0a;
  }

  .mobile-menu.hidden {
    display: none;
  }

}

.resource-description, a {
    color: #a1a1aa;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
}

.seo-text {
    font-size: 14px;
    color: #a1a1aa;
    line-height: 1.6;
    align-content: center;
    align-items: center;
    text-align: center;
    margin-left: 24px;
    margin-right: 24px;
}

.image-wrapper {
  position: relative;
}

.image-dimensions {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.image-wrapper:hover .image-dimensions {
  opacity: 1;
}


.draggable-fav {
  cursor: grab;
}

.draggable-fav.dragging {
  opacity: 0.4;
}

.draggable-fav.drag-over {
  outline: 2px solid #4f8cff;
}

.fav-modal-textarea {
  width: 100%;
  height: 100px;
  background: #121212;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  padding: 10px;
  color: #f1f5f9;
  font-size: 14px;
  resize: vertical;
}

.fav-modal-textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.top-error-notice {
  width: 100%;
  background: #c62828;
  color: white;
  padding: 14px 50px 14px 20px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  position: relative;
  align-items: center;
  display: none;
  justify-content: center;
  text-align: center;
}

.top-error-notice.hidden {
  display: none;
}

.close-error {
  position: absolute;
  right: 16px;
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.8;
}

.close-error:hover {
  opacity: 1;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}