/* =========================================================
   BITES PAGE - LOVECREEP STYLE
========================================================= */

* {
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
}

#bites-page {
    width: 100%;
    background: #000;
    color: #fff;
    font-family: "Courier New", Courier, monospace;
}


/* =========================================================
   DROPDOWN HEADER
========================================================= */

.bites-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    
    background: #000;
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#bites-category-select {
    display: inline-block;
    
    min-width: 250px;
    max-width: calc(100% - 40px);
    padding: 12px 16px;
    
    background: #fff;
    color: #ef1018;
    
    border: none;
    border-radius: 0;
    outline: none;
    
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
    /* Custom arrow */
    background-image: 
        linear-gradient(45deg, transparent 50%, #ef1018 50%),
        linear-gradient(135deg, #ef1018 50%, transparent 50%);
    background-position: 
        calc(100% - 15px) 18px,
        calc(100% - 10px) 18px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 45px;
    
    transition: all 0.2s ease;
}

#bites-category-select:hover {
    background-color: #f5f5f5;
}

#bites-category-select:focus {
    box-shadow: inset 0 0 0 2px #ef1018;
}

#bites-category-select option {
    background: #fff;
    color: #333;
}


/* =========================================================
   INTRO SECTION (Sticky)
========================================================= */

#bites-intro {
    z-index: 100;
    padding: 40px 20px 60px;
    text-align: left;
    
    max-width: 600px;
    margin: 0 auto;
}

.bites-title {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 3px;
    text-transform: lowercase;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.ellipsis {
    display: inline;
}


/* =========================================================
   POSTS LIST
========================================================= */

.bites-list {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px 100px;
}


/* =========================================================
   CATEGORY SECTION
========================================================= */

.bites-category {
    position: relative;
    margin-bottom: 0;
    padding: 0 0;
}


/* =========================================================
   INDIVIDUAL POST
========================================================= */

.bite-post {
    display: block;
    margin: 0;
    padding: 0;
    
    opacity: 1;
    transition: opacity 0.15s linear;
    will-change: opacity;
}

.bite-post a {
    display: block;
    
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-decoration: none;
    
    padding: 8px 0;
    margin: 4px 0;
    
    transition: opacity 0.2s ease;
    
    -webkit-tap-highlight-color: transparent;
}

.bite-post a:hover {
    opacity: 0.7;
}

.bite-post a:active {
    opacity: 0.5;
}


/* =========================================================
   SPACER DIVIDER
========================================================= */

.bite-spacer {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 18px;
    font-weight: 400;
    margin: 30px 0;
    padding: 20px 0;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 768px) {
    
    .bites-header {
        padding: 15px 0;
    }
    
    #bites-category-select {
        min-width: 200px;
        font-size: 13px;
        padding: 10px 14px;
        padding-right: 40px;
    }
    
    #bites-intro {
        top: 60px;
        padding: 30px 16px 50px;
    }
    
    .bites-title {
        font-size: 36px;
        letter-spacing: 2px;
    }
    
    .bites-list {
        padding: 0 16px 80px;
    }
    
    .bite-post a {
        font-size: 15px;
    }
    
}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 480px) {
    
    .bites-header {
        padding: 12px 0;
    }
    
    #bites-category-select {
        min-width: 160px;
        font-size: 12px;
        padding: 9px 12px;
        padding-right: 35px;
        
        background-position: 
            calc(100% - 12px) 16px,
            calc(100% - 8px) 16px;
        background-size: 5px 5px, 5px 5px;
    }
    
    #bites-intro {
        top: 50px;
        padding: 20px 12px 40px;
    }
    
    .bites-title {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .bites-list {
        padding: 0 12px 60px;
    }
    
    .bite-post a {
        font-size: 16px;
        line-height: 1.3;
        padding: 6px 0;
        margin: 3px 0;
    }
    
    .bite-spacer {
        font-size: 14px;
        margin: 20px 0;
        padding: 15px 0;
    }
    
}


/* =========================================================
   MOBILE SMALL
========================================================= */

@media (max-width: 360px) {
    
    .bites-title {
        font-size: 20px;
    }
    
    .bite-post a {
        font-size: 12px;
    }
    
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
    
    .bite-post,
    #bites-category-select,
    .bite-post a {
        transition: none !important;
    }
    
}


/* =========================================================
   PRINT STYLES
========================================================= */

@media print {
    
    .bites-header,
    #bites-intro {
        display: none;
    }
    
    #bites-page {
        background: #fff;
        color: #000;
    }
    
    .bite-post a {
        color: #000;
    }
    
}