
.magic-button {
position: fixed;
top: 20px;
right: 20px;
z-index: 1000;
padding: 14px 28px;
font-size: 1rem;
font-weight: 600;
border-radius: 12px;
background: rgba(255, 255, 255, 0.1);
color: #fff;
text-decoration: none;
backdrop-filter: blur(10px);
border: 1px solid #ff0062;
box-shadow: 0 0 20px #ff00ff, 0 0 30px rgb(0, 100, 255);
transition: all 0.3s ease;
}

/* Hover efekti */
.magic-button:hover {
background: rgba(255, 255, 255, 0.2);
transform: scale(1.05);
box-shadow: 0 0 20px rgba(255, 0, 255, 0.4), 0 0 30px rgba(0, 200, 255, 0.3);
}

/* Mobil ekranlar için konum ve boyut optimizasyonu */
@media (max-width: 600px) {
.magic-button {
top: auto;
bottom: 20px;
right: 20px;
left: auto;
padding: 10px 20px;
font-size: 0.9rem;
border-radius: 10px;
}
}

.shortcutList {
  display: flex;
  flex-wrap: wrap;       /* Kutu taşarsa alt satıra geç */
  gap: 15px;             /* Kutular arası boşluk */
  justify-content: flex-start;
  padding: 10px;
}

.shortcut-item {
  background: #2c2f33;
  color: #fff;
  border-radius: 10px;
  padding: 15px 20px;
  flex: 1 1 calc(20% - 15px); /* %20 genişlik - gap */
  max-width: calc(20% - 15px);
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
}

.shortcut-item:hover {
  background: #7289da;
}

@media (max-width: 1200px) {
  .shortcut-item {
    flex: 1 1 calc(25% - 15px);
    max-width: calc(25% - 15px);
  }
}

@media (max-width: 900px) {
  .shortcut-item {
    flex: 1 1 calc(33.33% - 15px);
    max-width: calc(33.33% - 15px);
  }
}

@media (max-width: 600px) {
  .shortcut-item {
    flex: 1 1 calc(50% - 15px);
    max-width: calc(50% - 15px);
  }
}

@media (max-width: 400px) {
  .shortcut-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


body {
background-color: #121212;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 20px;
  max-width: auto;
  margin: auto;
}
h1, h3 {
  text-align: center;
}
form, .filters {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* INPUT stilleri */
input {
padding: 8px 14px;
background: #222;
border: none;
border-radius: 8px;
color: #ff0062;
transition: all 0.3s ease;
cursor: pointer;
}

/* TEXTAREA stilleri */
textarea {
padding: 8px 14px;
background: #222;
border: none;
border-radius: 8px;
color: #ff0062;
transition: all 0.3s ease;
cursor: pointer;
}

/* SELECT stilleri */
select {
padding: 8px 14px;
background: #5e5e5e69;
border: none;
border-radius: 8px;
color: #ff0062;
transition: all 0.3s ease;
cursor: pointer;
}

select, .dropdown {
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 6px 10px;
  background: #5e5e5e69;
  border: 1px solid #222;
}

/* BUTTON stilleri */
button {
padding: 8px 14px;
background: #222;
border: none;
border-radius: 8px;
color: #ff0062;
transition: all 0.3s ease;
cursor: pointer;
}

button:hover {
  background: #333;
  cursor: pointer;
    background-color: #ff0062;
  color: white;
}
.shortcut {
  border: 1px solid #333;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.shortcut-container {
  display: flex;
  flex-wrap: wrap;  /* Elemanlar alt satıra geçer */
  gap: 12px;
}

.shortcut-item {
  flex: 1 1 150px;  /* Minimum 150px genişlik */
  max-width: 200px; /* Maksimum genişlik */
}

.shortcut img {
  width: 60px;
  margin-top: 5px;
  border-radius: 4px;
}
.tag {
  background: #444;
  padding: 2px 6px;
  margin-right: 5px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
}
.tag:hover {
  background: #666;
}

.title {
  color: rgb(255, 255, 255);
  text-shadow:
    0 0 5px #ff0062,
    0 0 10px #ff0062,
    0 0 20px rgb(255, 0, 98),
    0 0 40px rgb(255, 0, 98),
    0 0 80px rgb(255, 0, 98);
      margin: 0;
  font-size: 30pxpx;
}

.light {
  --bg: #ffffff;
  --text: #111;
  --card: #f2f2f2;
}

.shortcut {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.8rem;
  border-radius: 10px;
  background: var(--card);
  margin-bottom: 0.6rem;
}

#shortcutList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

.shortcut .thumb-icon {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 28px;
  margin-right: 10px;
  flex-shrink: 0;
  float: left;
}

.file-download {
  display: inline-block;
  margin-top: 10px;
  color: #0af;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.3s;
}

.file-download:hover {
  border-bottom: 1px solid #ff0062;
}


.group-title {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-size: 1.1rem;
  border-bottom: 1px solid #444;
  
}

.tag {
  display: inline-block;
  background: #3a3a3a;
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.3rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
}
.tag:hover {
  background: #ff0062;
}
.tag.active {
  background: #ff0062;
}

.shortcut[draggable="true"] {
  cursor: grab;
}
.shortcut[draggable="true"]:active {
  cursor: grabbing;
}

#shortcutList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 16px;
}

.delete {
  background: #ff006223;
    box-shadow: 0 0 12px #ffffff5b;
}

.delete:hover {
  box-shadow: 0 0 12px #ff0062;
  transform: scale(1.05);
}

.shortcut .delete {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 6px 12px;
}

.shortcut {
background: #5e5e5e28;
border-radius: 1rem;
  padding: 14px;
    box-shadow: 0 0 12px #ff00623a;
border: 1px solid #222;
  display: flex;
  color: #ffffff;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
    position: relative;           /* rozet içeriğe göre konumlanabilsin */
  flex: 1 1 200px;
  max-width: 300px;
  overflow: hidden;
}

.shortcut:hover {
transform: scale(1.01);
transition: transform 0.15s ease-in-out;
}

.shortcut img.thumbnail {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 10px;
  flex-shrink: 0;
}

.shortcut .title {

  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 2px;
  
}

.shortcut .description {
  font-size: 0.9rem;
  color: #ccc;
}



select:hover, .dropdown:hover {
  background: #5e5e5e69;
}

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



.tag {
  background-color: #5e5e5e69;
  color: var(--text);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  
}

.tag.active {
  background-color: var(--tag-active-bg);
  color: var(--tag-active-text);
}


.category-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #444;
  color: white;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 1;
  pointer-events: none;
    box-shadow:
    0 0 6px currentColor,
    0 0 10px currentColor,
    inset 0 0 4px currentColor;
}

.category-badge, .tag {
  border-radius: 6px;
  font-weight: 500;
  box-shadow: 0 0 8px #ffffff5b;
  transition: all 0.3s ease;
}

.category-badge:hover, .tag:hover {
  box-shadow: 0 0 12px #ff00628e;
  transform: scale(1.05);
}

.glow {
  animation: glow-pulse 2s infinite ease-in-out;
}

@keyframes glow-pulse {
  0% { box-shadow: 0 0 6px currentColor; }
  50% { box-shadow: 0 0 12px currentColor; }
  100% { box-shadow: 0 0 6px currentColor; }
}


.category-group {
  margin-bottom: 24px;
}

.category-header {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #5e5e5e69;
  border-radius: 8px;
  user-select: none;
}

.category-header .chevron {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.category-header:active .chevron {
  transform: rotate(180deg);
}

.category-content.hidden {
  display: none;
}

.edit-btn {
  margin-top: 10px;
  background: #e0e0e0;
  border: none;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.edit-btn:hover {
  background: #ccc;
}

.shortcut-card {
  background: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.7);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.shortcut-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px #0096ff80;
}


.header {
  display: flex;
  align-items: center;
  gap: 10px;
  
}

.thumbnail-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.8);
  
}


.favorite-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #f5b301;
  cursor: pointer;
  margin-right: 8px;
}

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

.shortcut-actions {
  position: relative;
  display: inline-block;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.shortcut-menu {
  position: absolute;
  right: 0;
  top: 25px;
  background: #5e5e5e69;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: none;
  z-index: 100;
  padding: 6px 0;
}

.shortcut-menu button {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 8px 12px;
  text-align: left;
  font-size: 0.9rem;
  cursor: pointer;
}

.shortcut-menu button:hover {
  background-color: #f0f0f0;
  
}

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

/* Modal içerik varsayılan hali */
.modal-content {
  background: #222;
  padding: 20px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  color: #fff;
  position: relative;
}

/* Modal kapatma butonu */
.close {
  position: absolute;
  top: 12px; 
  right: 12px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

#modalThumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #333;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}

.modal-header-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#modalTitle {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

/* Etiketler */
#modalTags span {
  display: inline-block;
  background: #444;
  color: white;
  padding: 4px 10px;
  margin-right: 8px;
  border-radius: 6px;
  font-size: 0.85rem;
}

/* Kategori rozet */
#modalCategory {
  margin-top: 4px;
  font-weight: 600;
  background: linear-gradient(135deg, #ff0062, #ff33a8);
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  max-width: max-content;
}

/* Açıklama */
#modalDesc {
  color: #ddd;
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 12px;
}

/* Iframe önizleme */
#modalPreview {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  border: none;
  background: #000;
}

/* Responsive (mobil) */
@media (max-width: 600px) {
  .modal-header {
    flex-direction: column;
    align-items: flex-start;
  }
  #modalThumb {
    width: 100%;
    height: auto;
    max-height: 150px;
  }
  .modal-header-text {
    width: 100%;
  }
  #modalTitle {
    font-size: 1.3rem;
  }
  #modalCategory {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
  #modalTags span {
    font-size: 0.75rem;
    padding: 3px 8px;
    margin-right: 6px;
  }

#modalPreview {
  overflow: auto;
}
}

#openSiteBtn {
  background-color: #ff0062;
  color: white;
  border-radius: 8px;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

#openSiteBtn:hover {
  background-color: #ff3399;
}

#modalInfo:hover #dateInfo {
  display: block;
}

/* Linklerin altındaki çizgiyi kaldır */
a {
  text-decoration: none;
  color: inherit; /* Bağlantı metninin rengini, üst öğenin rengini alacak şekilde ayarlıyoruz */
}

/* Başlıkları daha iyi hale getirebiliriz */
a:hover {
  text-decoration: underline; /* Mouse ile üzerine gelindiğinde alt çizgi ekleyelim */
}

/* Görsellerin sürüklenmesini engelle */
img {
  -webkit-user-drag: none; /* Safari, Chrome */
}

/* Footer stilleri */
.footer {
  text-align: center; /* Ortaya hizalama */
  padding: 20px 0; /* Yükseklik */
  left: 0;
  bottom: 0;
}

.footer {
  font-weight: bold; /* Vurgulu yazı */
  color: #ff339917; /* Etiketin rengini değiştirebilirsiniz */
}

/* CSS - Dark Theme */
.dark-theme {
  background-color: #121212;
  color: white;
}

/* Küçük ekranlarda shortcut gridi tek sütün yap */
@media (max-width: 480px) {
  #shortcutList {
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding: 12px;
  }

  .shortcut {
    padding: 12px;
    font-size: 14px;
  }

  .magic-button {
    padding: 10px 16px;
    font-size: 0.9rem;
    bottom: 16px;
    top: auto;
    right: 16px;
  }

  .shortcut .title {
    font-size: 1rem;
  }

  .shortcut .description {
    font-size: 0.85rem;
  }

  .category-header {
    font-size: 0.95rem;
    padding: 6px 10px;
  }

  .shortcut img.thumbnail,
  .thumbnail-img {
    width: 36px;
    height: 36px;
  }

  .modal-content {
    padding: 16px;
  }

  #modalPreview {
    height: 200px;
  }

  .shortcut .delete {
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  .footer {
    font-size: 0.8rem;
    padding: 12px 0;
  }

  input, textarea, select, button {
    font-size: 0.95rem;
  }
}
