/* ========================================= */
/* GLOBAL STYLES                             */
/* ========================================= */
body { 
  font-family: sans-serif; 
  margin: 0; 
  background: #f4f4f4; 
}

header { 
  background: #800000; 
  color: white; 
  padding: 8px 15px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  position: sticky;
  top: 0;
  z-index: 1000; /* Makes sure images slide UNDER the header, not over it */
}
}

.logo {
  font-weight: bold; 
  font-size: 20px;
}

.container { 
  max-width: 500px; 
  margin: 20px auto; 
  padding: 0 10px; 
}

/* ========================================= */
/* BUTTONS & INPUTS                          */
/* ========================================= */
.btn { 
  padding: 10px 20px; 
  cursor: pointer; 
  border: none; 
  border-radius: 4px; 
  text-decoration: none; 
  display: inline-block; 
}

.btn-google { background: #4285F4; color: white; font-size: 16px; }
.btn-upload { background: #28a745; color: white; width: 100%; margin: 10px 0; }
.btn-post { background: #800000; color: white; width: 100%; }

input, textarea { 
  width: 100%; 
  padding: 10px; 
  margin: 5px 0; 
  box-sizing: border-box; 
}

#uploadForm { 
  display: none; 
  background: white; 
  padding: 15px; 
  margin-bottom: 20px; 
  border-radius: 8px; 
}

/* ========================================= */
/* POST CARDS & MEDIA                        */
/* ========================================= */
.post-card {
  background: white;
  border: 3px solid #333;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.media-box {
  width: 100%;
  height: 480px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
   padding: 15px; 
  box-sizing: border-box;
}

.media-box img, 
.media-box video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Keeps original dimension without cutting */
  border-radius: 5px;
}

.post-info { 
  padding: 15px; 
}

.user-info { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}
/* ========================================= */
/* POST ACTION BUTTONS (Like, Comment, etc)  */
/* ========================================= */
.post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-top: 1px solid #eee;
  background-color: #fafafa;
}

.action-btn {
  background: none;
  border: none;
  color: #555;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.2s;
}

.action-btn:hover {
  background-color: #eaeaea;
  color: #800000;
}

.delete-btn {
  color: #dc3545;
}

.delete-btn:hover {
  background-color: #ffe6e6;
  color: #a71d2a;
}
/* ========================================= */
/* HEADER DROPDOWN MENU                      */
/* ========================================= */
.menu-container {
  position: relative;
  display: inline-block;
}

.menu-btn {
  background: transparent;
  color: white;
  border: 1px solid white;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 150px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 100;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 10px;
}

.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: bold;
  border-bottom: 1px solid #f4f4f4;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
  color: #800000;
}

.dropdown-content .logout-link {
  color: #dc3545;
}
/* ========================================== */
/* POST AUTHOR HEADER (Avatar & Name)         */
/* ========================================== */
.post-author-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px; /* Adds nice spacing inside the top of the post card */
    border-bottom: 1px solid #eee; /* Optional: A tiny line separating the name from the video */
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #800000; /* SnapTap brand color */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
}

.author-name {
    color: #222;
    font-size: 15px;
    font-weight: 700;
}
/* The Premium Recent Button */
.recent-btn {
    background: linear-gradient(45deg, #ff0050, #00f2fe);
    color: white !important; /* Forces it to stay white */
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 4px 15px rgba(255, 0, 80, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
}

.recent-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.6);
}
/* ========================================== */
/* MOBILE RESPONSIVE RULES (Phones Only)      */
/* ========================================== */
@media screen and (max-width: 768px) {
    
    /* 1. Header & Logo Scaling */
    header .logo {
        font-size: 20px !important;
    }

    /* 2. Fix the Dropdown Menu bleeding off screen */
    .dropdown-content {
        right: 0 !important;
        left: auto !important;
        min-width: 150px; 
    }

    /* 3. Scale down User Info and Bell */
    .user-info {
        gap: 8px !important;
    }
    .user-info span {
        font-size: 12px !important;
    }
    .nav-bell-wrapper {
        margin: 0 8px !important;
    }

    /* 4. Make all header buttons smaller */
    #user-area .btn,
    .user-info .btn, 
    .recent-btn, 
    .menu-btn {
        padding: 5px 8px !important;
        font-size: 12px !important;
    }

    /* 5. Post Cards & Feed Margins */
    .page-container, #feed {
        margin: 10px auto !important;
        padding: 10px !important;
    }
    
    /* 6. Ensure action buttons wrap neatly on tiny screens */
    .post-actions {
        gap: 5px !important;
        flex-wrap: wrap !important; /* Forces buttons to a new line instead of squeezing */
    }
    .action-btn {
        padding: 5px 8px !important;
        font-size: 12px !important;
    }
}
/* ========================================= */
/* ISOLATED SEARCH BUTTON (Header)           */
/* ========================================= */
.search-btn {
    background-color: #1e1e1e;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px; /* Matches the clean, pill-like modern look */
    font-weight: bold;
    font-size: 14px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.search-btn:hover {
    background-color: #800000; /* The signature SnapTap Maroon */
    border-color: #800000;
    transform: scale(1.05); /* Slight pop effect on hover */
}