/* Inline CSS for demonstration; move to /assets/css/style.css in production */
body {
  background: linear-gradient(135deg, #181818 60%, #ff3c78 100%);
  min-height: 100vh;
  margin: 0;
}


body, input, button, textarea, select {
  font-family: 'Fredoka', Arial, Helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  letter-spacing: -0.5px;
}


.welcome-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  gap: 1.5em;
}

.brand-logo {
  text-align: center;
  border-top: 44px solid #332e2e;
  border-bottom: 44px solid #332e2e;
  border-left: 10px solid #332e2e;
  border-right: 10px solid #332e2e;
  border-radius: .79rem;
  margin: 15px 4px 15px 4px;
  padding: 5px 11px 5px 11px;
}


.brand-logo img, .brand-logo svg {
  width: 200px;    /* Or higher if you want even larger */
  max-width: 220vw;
  height: auto;
  display: inline-block;
}


.brand-logo img {
  width: 200px;    /* Or higher if you want even larger */
  max-width: 200vw;  
  text-align: center;
  border: 2.5px solid #2d2727;
  border-radius: .71rem;
  margin: 7px 7px;
  padding: 4px 4px;
  border-bottom: 4px solid #897777;
  border-top: 4px solid #897777;
}


.brand-logo h1 {
  color: #fff;
  font-size: 2.1em;
  margin-bottom: 0.25em;
}
.brand-name {
  color: #917b82;
  font-weight:470;
}
.brand-tagline {
  color: #e0e0e0;
  font-size: 1.12em;
  margin-bottom: 0.5em;
}
.auth-actions {
  display: flex;
  gap: 1em;
}
.auth-btn {
  padding: 0.9em 2em;
  font-size: 1em;
  border-radius: 6px;
  border: none;
  text-decoration: none;
  color: #fff;
  background: #333;
  transition: background 0.20s;
  font-weight: 600;
}
.login-btn { background: #333; }
.login-btn:hover { background: #222; }
.signup-btn { background: #ff3c78; }
.signup-btn:hover { background: #e0326a; }

/*homepage css */

.feed-container {
  max-width: 1100px;
  margin: 2.5em auto;
  padding: 1em 1.5em;
  color: #fafafc;
  font-family: 'Fredoka', Arial, Helvetica, sans-serif;
}

.feed-container h2 {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 1.5em;
  color: #ff3c78; /* Brand accent */
  font-weight: 700;
  letter-spacing: 1px;
}

.reels-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8em 1.5em;
}

.reel-card {
  background: rgba(32, 32, 32, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(255, 60, 120, 0.3);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.reel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(255, 60, 120, 0.45);
}

.reel-thumbnail-link {
  display: block;
  width: 100%;
  overflow: hidden;
}

.reel-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.reel-card:hover .reel-thumbnail {
  transform: scale(1.05);
}

.reel-info {
  padding: 1em 1.2em 1.4em 1.2em;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.reel-title {
  font-size: 1.25em;
  margin: 0 0 0.5em 0;
  font-weight: 700;
  color: #ff7aab;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.reel-creator {
  font-size: 0.9em;
  font-style: italic;
  color: #bbb;
  margin-bottom: 0.3em;
}

.reel-genre {
  font-size: 0.88em;
  font-weight: 500;
  color: #ff3c78;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8em;
}

.reel-views,
.reel-date {
  font-size: 0.82em;
  color: #a9a9a9;
  margin-top: auto;
}

.no-reels-message {
  text-align: center;
  font-size: 1.25em;
  color: #faa;
  margin-top: 3em;
}



/* playpage css */

.reel-player-container {
  max-width: 700px;
  margin: 2.5em auto 2em auto;
  background: rgba(32,32,32,0.95);
  border: 1px solid black;
  border-radius: 12px;
  box-shadow: 0 6px 30px #000a;
  padding: 0 0 1.5em 0;
  color: #fafafc;
}
.video-section {
  width: 100%;
  border-radius: 12px 12px 0 0;
  border: .5px solid black;
  overflow: hidden;
  background: #171726;
}
.reel-details {
  padding: 1.5em 2em 0.3em 2em;
}
.reel-title {
  font-size: 1.5em;
  color: #ff7aab;
  margin-bottom: 0.28em;
}
.creator-bar {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 1em;
}
.creator-avatar, .comment-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #ff3c78;
}
.creator-name {
  font-weight: 600;
  color: #ff3c78;
}
.reel-desc {
  margin: 0.5em 0 0.6em 0;
  color: #fafaff;
}
.reel-meta {
  font-size: 0.98em;
  color: #bbb;
  margin-bottom: 1.2em;
}
.reel-actions {
  margin-bottom: 1.2em;
  display: flex;
  gap: 1.2em;
}
.like-btn, .share-btn {
  background: #ff3c78;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 7px;
  padding: 0.75em 1.4em;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.18s;
}
.like-btn:hover, .share-btn:hover { background: #e0326a; }




.like-btn.liked .like-count {
  color: black !important; /* White count */
}

.like-btn.liked {
  background-color: #e91e63; /* A strong pink */
  color: #6a1b9a !important;
}

.like-btn.liked .like-count {
  color: black !important; /* Deep purple */
}





.reel-comments-section { margin-top: 2em; background: #272739; padding: 1em 1.5em; border-radius: 8px;}
.comment-form textarea { width: 85%; min-height:44px; border-radius:7px; border: none; margin-bottom:0.7em; background: #3a3a55; color: #fff; }
.comment-form button { padding: 0.4em 1.4em; border-radius:6px; border:none; background: #ff3c78; color: #fff; font-weight: 600; }
.comments-list { margin-top: 1.1em;}
.comment-row { display: flex; align-items: flex-start; gap: 1em; margin-bottom: 0.75em;}
.comment-user-avatar { width: 32px; height:32px; }
.comment-username { color: #ff3c78; font-weight: 600;}
.comment-date { color: #aaa; font-size: 0.89em; margin-left: 0.7em;}

.no-comments { color: #aaa; text-align: left; margin-top:1.4em;}


.comment-text {
  color: #fff;
  margin-top: 3px;
  white-space: pre-wrap; /* preserves line breaks and wraps text */
  word-wrap: break-word; /* legacy, but good fallback */
  overflow-wrap: break-word; /* modern standard for breaking long words */
  word-break: break-word; /* breaks long words anywhere if needed */
  max-width: 90%; /* restrict width */
  box-sizing: border-box; /* include padding/border in width */
}



.comment-replies {
  margin-left: 0 !important;
  padding-left: 0 !important;
  border-left: none !important;
}

    
    
.comment-row {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid #3d3f49;
  padding: 2px 2px 12px 2px;
  margin-bottom: 9px;
}

.reply-row {
  /* Optional: slight color/label difference only, but NO left margin */
  background-color: #fafbfc;
}

.reply-label {
  color: #888;
  font-size: 0.99em;
  margin-left: 2px;
}
.comment-content {
  width: 90%;
  padding-left: 2px;
}


.reel-desc a {
  color: #1a73e8;
  text-decoration: underline;
  word-break: break-word;
}


    /* Add styles for replies indentation, creator heart icon, etc.*/
    
    .creator-heart-indicator {
      color: red;
      float: right;
      font-size: 1.2em;
      margin-left: 10px;
    }
    .liked, .creator-hearted {
      color: red !important;
    }
    .reply-form {
      margin-top: 10px;
      display: none;
    }
    /* Style clickable links inside description */
    .reel-desc a {
      color: #1a73e8;
      text-decoration: underline;
      word-break: break-word;
    }



/*profile page css */

.profile-container {
  max-width: 700px;
  margin: 2em auto;
  background: rgba(30,30,45,0.98);
  color: #fff;
  border-radius: 12px;
  padding: 2em 2em 1.3em 2em;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.8em;
  margin-bottom: 2em;
}
.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ff3c78;
}
.edit-profile-link {
  margin-left: 16px;
  font-size: 0.95em;
  color: #ff3c78;
  text-decoration: underline;
}
.profile-role {
  font-size: 1em;
  color: #ffd6e0;
  font-weight: 600;
}
.profile-location {
  font-size: 1em;
  color: #bffbee;
}

.upload-btn-block {
  margin-bottom: 2em;
}
.upload-btn {
  background: #ff3c78;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px #ff3c784d;
  padding: 0.7em 1.8em;
  border-radius: 7px;
  font-size: 1em;
  text-decoration: none;
  transition: background 0.15s;
}
.upload-btn:hover {
  background: #ed106a;
}

.profile-reels-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3em;
}
.profile-reel-card {
  background: #232338;
  border-radius: 8px;
  width: 221px;
  overflow: hidden;
  margin-bottom: 1.2em;
}
.profile-reel-card img.profile-reel-thumb {
  width: 221px;
  height: 221px;
  object-fit: cover;
}
.profile-reel-meta {
  padding: 0.55em 0.7em;
}
.profile-reel-title {
  display: block;
  color: #ffaad1;
  font-size: 1em;
  font-weight: 700;
  margin-bottom: 0.15em;
}
.profile-reel-views {
  color: #bbb;
  font-size: 0.93em;
}


/*upload page css */
.upload-container {
  max-width: 430px;
  margin: 2.5em auto;
  background: rgba(35,34,58,0.96);
  border-radius: 11px;
  padding: 2.3em 2em 2em 2em;
  box-shadow: 0 4px 20px #fa06793c;
  color: #fff;
}
.upload-form label {
  display: block;
  font-weight: 600;
  margin-top: 1em;
  margin-bottom: 0.4em;
}
.upload-form input,
.upload-form textarea {
  margin-left: 4px;
  margin-right:4px;
  width: 90%;
  border-radius: 7px;
  border: none;
  padding: 1em;
  margin-bottom: 0.7em;
  background: #27282c;
  color: #fff;
  font-size: 1em;
  border: 2px solid #fafafa;
}
.upload-form textarea { resize: vertical;}
.upload-btn {
  width: 100%;
}
.form-message {
  font-weight: 600;
  color: #ffadaa;
}


/*profile links */
.profile-link img {
  max-width: 27px;
  height: 27px;
  width: 27px;
  max-height: 27px;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.profile-link:hover img {
  max-width: 27px;
  max-height: 27px;
  width: 27px;
  height: 27px;
  transform: scale(1.05);
}

/* thumbnails of profile page */

/* Minimal CSS to show thumbnail images */
.profile-reel-thumb {
  display: block;     /* Make sure image is not inline with weird whitespace */
  max-width: 100%;    /* Responsive */
  width: 221px;
  height: auto;
  border-radius: 8px; /* Optional rounded corners */
  object-fit: cover;  /* Cover the container nicely */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Soft shadow for depth */
}

/* Make sure the profile-reel-card has reasonable size */
.profile-reel-card {
  margin-bottom: 1rem;
  max-width: 221px;    /* or what suits your layout */
  width: 221px;;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Soft shadow for depth */
}

/* Optional layout for the reel card container */
.profile-reels-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}




/*messaging features*/

/* Responsive YouTube embed container */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 10px 0;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}









/*Responsive adjustments for small screens */
@media (max-width: 480px) {
  .profile-reels-list {
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1.1rem;
  }

  .profile-reel-card {
    max-width: 290px;
    width: 290px;
    max-height: 290px;
    height: 290px;
    flex: 1 1 290px;
    margin-bottom: 0;
  }

  .profile-reel-thumb {
    max-width: 290px;
    width: 290px;
    max-height: 290px;
    height: 290px;
    border-radius: 14px;
  }
  
  
    .profile-reel-card {
      background: #232338;
      border-radius: 8px;
      width: 290px;
      overflow: hidden;
      margin-bottom: 1.2em;
    }
    
    .profile-reel-card img.profile-reel-thumb {
      width: 290px;
      height: 290px;
      object-fit: cover;
    }
  
  
  
}




/* On mobile (screen width <= 480px), shrink the logo */
@media (max-width: 480px) {
  .brand-logo img {
    width: 120px;
  }
}


@media (max-width: 600px) {
  .reel-thumbnail {
    height: 140px;
  }

  .feed-container h2 {
    font-size: 1.8em;
  }
}


@media (max-width: 480px) {
  .brand-logo h1 { font-size: 1.3em; }
  .auth-btn { font-size: 0.95em; padding: 0.8em 1.3em; }
}
