/* 
  CSS Variables for theme colors, backgrounds, and text colors 
*/
:root {
  /* Dark theme (default) */
  --background-image: url('/img/wallpaper/wp-1.jpg');
  --background-size: cover;
  --background-position: center;
  --background-attachment: fixed;
  --text-color: #fff;
  --card-bg-color: rgba(34, 34, 34, 0.5);
  --card-shadow-color: rgba(0, 0, 0, 0.5);
  --badge-bg-color: rgb(224, 255, 230);
  --badge-text-color: #228B22;
  --dot-bg-color: #228B22;
  --link-item-bg-color: rgba(255, 255, 255, 0.05);
  --link-item-hover-bg-color: rgba(41, 41, 41, 0.5);
  --link-text-color: #fff;
  --link-desc-color: #e7e5e5;
  --link-icon-color: #e7e5e5;
  --footer-text-color: #fff;
  --time-text-color: #242424;
  --toggle-bg-color: rgba(255, 255, 255, 0.1);
  --toggle-border-color: rgba(255, 255, 255, 0.2);
  --toggle-icon-color: #fff;
}

/* Light theme variables */
[data-theme="light"] {
  --background-image: url('/img/wallpaper/wp-1.jpg');
  --background-size: cover;
  --background-position: center;
  --background-attachment: fixed;
  --text-color: #1a1a1a;
  --card-bg-color: rgba(254, 250, 248, 0.5);
  --card-shadow-color: rgba(0, 0, 0, 0.15);
  --badge-bg-color: rgb(224, 255, 230);
  --badge-text-color: #228B22;
  --dot-bg-color: #228B22;
  --link-item-bg-color: rgba(254, 250, 248, 0.4);
  --link-item-hover-bg-color: rgba(254, 250, 248, 0.6);
  --link-text-color: #1a1a1a;
  --link-desc-color: #444;
  --link-icon-color: #444;
  --footer-text-color: #fff;
  --time-text-color: #1a1a1a;
  --toggle-bg-color: rgba(254, 250, 248, 0.4);
  --toggle-border-color: rgba(254, 250, 248, 0.5);
  --toggle-icon-color: #1a1a1a;
}

/* 
  Reset and base styles for body element 
*/
body {
  margin: 0px;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-image: var(--background-image);
  background-size: var(--background-size);
  background-position: var(--background-position);
  background-attachment: var(--background-attachment);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  transition: all 0.3s ease;
}

/* 
  Main container styles 
*/
main {
  width: fit-content;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 
  Time container section styles 
*/
.header-container {
  width: 100%;
  margin: 0 auto 12px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 
  Time display section styles 
*/
.time-display {
  padding: 12px 16px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-radius: 10px;
  background-color: var(--card-bg-color);
  box-shadow: 0 0 15px var(--card-shadow-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-color);
  transition: all 0.3s ease;
  flex-wrap: wrap;
  gap: 8px;
}

.time-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.time-icon {
  font-size: 16px;
  color: var(--text-color);
  opacity: 0.8;
  transition: all 0.3s ease;
}

/* 
  Time display text styles 
*/
.time-display p {
  font-weight: 300;
  color: var(--text-color);
  margin: 0px;
  font-size: 14px;
  transition: all 0.3s ease;
}

/* Controls container for likes and theme toggle */
.controls-container {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
}

/* Theme toggle container and button styles */
.theme-toggle-container {
  position: relative;
}

.theme-toggle {
  background: var(--toggle-bg-color);
  border: 2px solid var(--toggle-border-color);
  border-radius: 50px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

/* Dark theme toggle button - style like card container */
[data-theme="dark"] .theme-toggle {
  background-color: var(--card-bg-color);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px var(--card-shadow-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Light theme toggle button - black stroke like dark container */
[data-theme="light"] .theme-toggle {
  background-color: var(--card-bg-color);
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 15px var(--card-shadow-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.theme-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.toggle-slider {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle i {
  color: var(--toggle-icon-color);
  font-size: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.3));
  -webkit-filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.3));
}

.theme-toggle i.fa-moon {
  opacity: 1;
  transform: translateX(0);
  color: #4a5568;
}

.theme-toggle i.fa-sun {
  opacity: 0;
  transform: translateX(20px);
  color: #f6ad55;
}

/* Light theme toggle states */
[data-theme="light"] .theme-toggle i.fa-moon {
  opacity: 0;
  transform: translateX(-20px);
  color: #a0aec0;
}

[data-theme="light"] .theme-toggle i.fa-sun {
  opacity: 1;
  transform: translateX(0);
  color: #f6ad55;
}

/* Dark theme toggle icon colors - white icons */
[data-theme="dark"] .theme-toggle i.fa-moon {
  color: #ffffff;
}

[data-theme="dark"] .theme-toggle i.fa-sun {
  color: #ffffff;
}

/* 
  Card container styles for profile and links 
*/
.card-container {
  width: 600px;
  background-color: var(--card-bg-color);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 0 15px var(--card-shadow-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-color);
  transition: all 0.3s ease;
}

/* 
  Profile section styles 
*/
.profile-section {
  text-align: center;
  gap: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 12px;
}

/* 
  Profile image styles 
*/
.profile-img {
  box-shadow: 0 0 15px rgba(68, 68, 68, 0.1);
  width: 100px;
  height: 100px;
  padding: 6px;
  border-radius: 50%;
  object-fit: cover;
}

/* 
  Heading styles 
*/
h1 {
  font-size: 36px;
  margin: 0px;
  color: var(--text-color);
  transition: all 0.3s ease;
}

/* 
  Verified badge styles (not currently used) 
*/
.verified-badge {
  color: #1DA1F2;
  font-size: 18px;
  vertical-align: middle;
}

/* 
  Badge styles for status indicator - Apple Glass Style
*/
.badge {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  color: var(--text-color);
  transition: all 0.3s ease;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Dark theme badge - darker glass */
[data-theme="dark"] .badge {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Light theme badge - lighter glass */
[data-theme="light"] .badge {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Badge hover effects */
.badge:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .badge:hover {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .badge:hover {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

/* 
  Likes feature styles 
*/
.likes-container {
  position: relative;
}

.likes-button {
  background: var(--toggle-bg-color);
  border: 2px solid var(--toggle-border-color);
  border-radius: 50px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  color: var(--text-color);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

/* Dark theme likes button - style like card container */
[data-theme="dark"] .likes-button {
  background-color: var(--card-bg-color);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px var(--card-shadow-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Light theme likes button - black stroke like dark container */
[data-theme="light"] .likes-button {
  background-color: var(--card-bg-color);
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 15px var(--card-shadow-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.likes-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.likes-button:active {
  transform: scale(0.95);
}

.likes-icon {
  color: #ff6b6b;
  font-size: 16px;
  transition: all 0.3s ease;
}

.likes-button:hover .likes-icon {
  transform: scale(1.2);
  color: #ff4757;
}

/* Liked state - filled heart */
.likes-button.liked .likes-icon {
  color: #ff4757;
  animation: heartBeat 0.6s ease-in-out;
}

/* Remove the ::before pseudo-element approach */
/* We'll handle icon changes via JavaScript instead */

/* Liked state styling */
.likes-button.liked {
  /* Keep hover effects for toggle functionality */
}

.likes-button.liked:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.likes-button.liked:hover .likes-icon {
  transform: scale(1.2);
}

.likes-count {
  font-weight: 600;
  color: var(--text-color);
  min-width: 10px;
  text-align: center;
}

.likes-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.likes-text {
  color: var(--text-color);
  font-weight: 500;
}

@keyframes heartBeat {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.3);
  }
  50% {
    transform: scale(1.1);
  }
  75% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

/* 
  Dot styles for status indicator with blinking animation 
*/
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--dot-bg-color);
  margin-right: 5px;
  animation: blink 1s infinite;
  transition: all 0.3s ease;
}

/* 
  Keyframes for blinking animation of dot 
*/
@keyframes blink {
  0% {
    opacity: 1;
  }

  25% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.2;
  }

  100% {
    opacity: 1;
  }
}

/* 
  Full description text styles 
*/
.description-full {
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 12px;
  margin-top: 0px;
  transition: all 0.3s ease;
}

/* 
  Minimal description text styles (hidden by default) 
*/
.description-min {
  display: none;
  color: var(--text-color);
  transition: all 0.3s ease;
}

/* 
  Links section container styles 
*/
.links-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
}

/* 
  Responsive adjustments for links section on small screens 
*/
@media (max-width: 600px) {
  .links-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto auto auto;
    gap: 12px;
    width: 100%;
    max-width: 600px;
    justify-items: stretch;
  }

  .links-section>a:nth-child(1) {
    grid-column: 1 / -1;
  }

  .links-section>a:nth-child(2),
  .links-section>a:nth-child(3) {
    grid-column: span 1;
  }

  .links-section>a:nth-child(4),
  .links-section>a:nth-child(5) {
    grid-column: span 1;
  }

  .links-section>a:nth-child(6) {
    grid-column: 1 / -1;
  }

  .links-section>a {
    width: 100%;
  }
}

/* 
  Link item styles for individual links 
*/
.link-item {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--link-text-color);
  background-color: var(--link-item-bg-color);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}



/* 
  Link logo image styles 
*/
.link-logo {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 16px;
}

/* 
  Link text container styles 
*/
.link-text {
  flex-grow: 1;
  margin: 4px;
}

/* 
  Link icon padding 
*/
i.link-icon {
  padding: 0px 8px;
  color: var(--link-icon-color);
  transition: all 0.3s ease;
}

/* 
  Link item text styles 
*/
.link-item div {
  font-weight: 600;
  font-size: 16px;
  color: var(--link-text-color);
}

/* 
  Link item description text styles 
*/
.link-item p {
  font-size: 12px;
  font-weight: lighter;
  margin: auto;
  color: var(--link-desc-color);
}

/* 
  Link item hover effect 
*/
.link-item:hover {
  background-color: var(--link-item-hover-bg-color);
  transform: scale(1.02);
}

/* Light mode drop shadow for link items */
[data-theme="light"] .link-item {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

[data-theme="light"] .link-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: scale(1.02) translateY(-2px);
}



/* 
  Footer styles 
*/
footer {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--footer-text-color);
  transition: all 0.3s ease;
}

/* 
  Media Queries for Responsive Design 
*/
@media (max-width: 899px) {
  main {
    align-items: center;
  }
  /* .header-container {
    max-width: 90%;
    width: 100%;
  } */

  .card-container {
    width: 90%;
  }
  
  .header-container {
    width: 95%;
  }

  h1 {
    font-size: 24px;
  }

  .profile-img {
    width: 100px;
    height: 100px;
  }

  .description-min {
    display: none;
  }

  .link-item {
    width: 100%;
  }

  .link-item div {
    font-size: 14px;
  }

  .link-item p {
    font-size: 12px;
  }

  .time-display {
    max-width: 100%;
  }

  .time-display p {
    font-size: 13px;
  }
  
  .time-icon {
    font-size: 14px;
  }

  .time-content {
    gap: 6px;
  }

  .theme-toggle {
    width: 35px;
    height: 35px;
  }

  .theme-toggle i {
    font-size: 14px;
  }

  .likes-container {
    margin-left: 8px;
  }

  .likes-button {
    padding: 8px 16px;
    font-size: 14px;
    gap: 8px;
  }

  .likes-icon {
    font-size: 16px;
  }

  .likes-count {
    min-width: 20px;
  }

  .likes-text {
    font-size: 14px;
  }

  /* Mobile responsive for liked state */
  .likes-button.liked {
    /* Keep normal opacity for toggle functionality */
  }

  /* Hide "Support" text on tablet screens */
  .likes-text {
    display: none;
  }
}

/* 
  Media query for very small screens 
*/
@media (max-width: 499px) {
  iframe {
    display: none;
  }

  main {
    align-items: center;
  }

  .card-container {
    gap: 8px;
    max-width: 90%;
    padding: 12px;
  }
  
  .header-container {
    max-width: 95%;
    width: 100%;
  }

  .profile-img {
    width: 80px;
    height: 80px;
  }

  h1 {
    font-size: 18px;
  }

  .description-full {
    font-size: 12px;
    margin-bottom: 12px;
    margin-top: 0px;
    display: none;
  }

  .description-min {
    display: block;
    font-size: 12px;
    margin-bottom: 12px;
    margin-top: 0px;
    color: var(--text-color);
    transition: all 0.3s ease;
  }

  .badge {
    font-size: 12px;
    padding: 5px 10px;
  }

  .dot {
    width: 4px;
    height: 4px;
  }

  .links-section {
    gap: 8px;
  }

  .link-item div {
    font-size: 12px;
  }

  .link-item p {
    font-size: 10px;
  }

  .link-logo {
    width: 30px;
    height: 30px;
    margin-right: 10px;
  }

  .link-icon {
    font-size: 10px;
  }

  .time-display {
    padding: 6px 12px;
    max-width: 95%;
  }

  .time-display p {
    font-size: 14px;
  }
  
  .time-icon {
    font-size: 14px;
  }

  .time-content {
    gap: 4px;
  }

  .controls-container {
    gap: 8px;
  }

  .theme-toggle {
    width: 35px;
    height: 35px;
  }

  .theme-toggle i {
    font-size: 14px;
  }

  .likes-button {
    padding: 8px 8px;
    font-size: 14px;
    gap: 4px;
  }

  .likes-icon {
    font-size: 16px;
  }

  .likes-text {
    font-size: 14px;
  }

  /* Mobile responsive for liked state */
  .likes-button.liked {
    /* Keep normal opacity for toggle functionality */
  }

  /* Hide "Support" text on mobile screens */
  .likes-text {
    display: none;
  }

  footer {
    font-size: 12px;
  }
}

/* 
  Media query for ultra-wide screens 
*/
@media (width >2440px) {
  .time-display p {
    font-size: 24px;
  }
  
  .time-icon {
    font-size: 28px;
  }
}

/* Custom Cursor Styles - Hidden for now */
.custom-cursor {
  display: none !important;
}

.cursor-triangle {
  width: 0;
  height: 0;
  border-style: solid;
  border-radius: 2px;
  border-width: 12px 12px 0 0;
  border-color: #333 transparent transparent transparent;
  z-index: 1;
  flex-shrink: 0;
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-8px, -8px) rotate(-180deg);
  /* Enhanced trigger area for better precision */
  pointer-events: auto;
  cursor: pointer;
}

.cursor-text {
  background-color: #666;
  color: #fff;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  font-family: 'Plus Jakarta Sans', sans-serif;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  position: relative;
}

.theme-toggle i {
  filter: none;
}


/* Show default cursor - custom cursor hidden */
* {
  cursor: auto !important;
}

/* Custom cursor hover effects - disabled */
/* a:hover ~ .custom-cursor,
button:hover ~ .custom-cursor,
.link-item:hover ~ .custom-cursor {
  opacity: 1;
  transform: scale(1.1);
}

.theme-toggle:hover ~ .custom-cursor {
  opacity: 1;
  transform: scale(1.15);
} */

/* Hover effects for cursor with theme-aware colors - disabled */
/* [data-theme="light"] a:hover ~ .custom-cursor .cursor-text,
[data-theme="light"] button:hover ~ .custom-cursor .cursor-text,
[data-theme="light"] .theme-toggle:hover ~ .custom-cursor .cursor-text,
[data-theme="light"] .link-item:hover ~ .custom-cursor .cursor-text {
  background-color: #ff6b6b;
}

[data-theme="light"] a:hover ~ .custom-cursor .cursor-triangle,
[data-theme="light"] button:hover ~ .custom-cursor .cursor-triangle,
[data-theme="light"] .theme-toggle:hover ~ .custom-cursor .cursor-triangle,
[data-theme="light"] .link-item:hover ~ .custom-cursor .cursor-triangle {
  border-color: transparent #ff6b6b transparent transparent;
}

[data-theme="dark"] a:hover ~ .custom-cursor .cursor-text,
[data-theme="dark"] button:hover ~ .custom-cursor .cursor-text,
[data-theme="dark"] .theme-toggle:hover ~ .custom-cursor .cursor-text,
[data-theme="dark"] .link-item:hover ~ .custom-cursor .cursor-text {
  background-color: #ff6b6b;
}

[data-theme="dark"] a:hover ~ .custom-cursor .cursor-triangle,
[data-theme="dark"] button:hover ~ .custom-cursor .cursor-triangle,
[data-theme="dark"] .theme-toggle:hover ~ .custom-cursor .cursor-triangle,
[data-theme="dark"] .link-item:hover ~ .custom-cursor .cursor-triangle {
  border-color: transparent #ff6b6b transparent transparent;
} */

/* Mobile responsive - hide custom cursor on touch devices */
@media (max-width: 768px) {
  .custom-cursor {
    display: none !important;
  }
  
  * {
    cursor: auto !important;
  }
}

/* Theme-specific cursor colors - disabled */
/* [data-theme="light"] .cursor-text {
  background-color: #333;
  color: #fff;
}

[data-theme="light"] .cursor-triangle {
  border-color: transparent #333 transparent transparent;
}

[data-theme="dark"] .cursor-text {
  background-color: #fff;
  color: #333;
}

[data-theme="dark"] .cursor-triangle {
  border-color: transparent #fff transparent transparent;
} */