/* CSS Document — Cloned from RapidSave.com main.css */

@import url(https://fonts.googleapis.com/css?family=Lato);

body,
html {
    margin: 0;
    padding: 0;
    background: #fafafa;
}

* {
    font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #337ab7;
}

a:hover {
    cursor: pointer;
    text-decoration: none;
}

.row {
    padding-left: 15px;
    padding-right: 15px;
}

/* Card */
.card {
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 1px;
    padding: 10px 0;
}

.card h1 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 25px;
    line-height: 40px;
    margin: 0 40px 10px;
    text-align: center;
    font-weight: 500;
}

.card h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 20px;
    margin: 0 40px 10px;
    text-align: center;
    color: #999;
    font-weight: 600;
}

/* Form */
.inputform {
    margin-top: 15px;
    margin-bottom: 15px;
}

.url-input {
    width: 100%;
    border: 1px solid #efefef;
    -webkit-box-flex: 1;
    flex: 1 0 0px;
    outline: none;
    padding: 9px 0 7px 8px;
    background: #fafafa;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 18px;
    margin-top: 10px;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

.url-input:focus {
    border: 1px solid #b2b2b2;
}

.submit-button {
    cursor: pointer;
    -webkit-appearance: none;
    border-radius: 3px;
    border-style: solid;
    border-width: 1px;
    font-size: 14px;
    font-weight: 600;
    line-height: 30px;
    outline: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    background: #337ab7;
    border-color: #337ab7;
    color: #fff;
    margin-top: 10px;
}

.submit-button:hover,
.submit-button:focus,
.submit-button:active {
    background: #286090;
    border-color: #204d74;
    color: #fff;
}

/* Result */
.resultdiv {
    margin-top: 25px;
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 1px;
    padding: 10px 0;
}

.downloadbutton {
    cursor: pointer;
    -webkit-appearance: none;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 500;
    line-height: 30px;
    outline: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #337ab7;
    border-color: #337ab7;
    color: #fff;
    margin-top: 10px;
    padding: 10px 20px;
    text-align: center;
    display: inline-block;
}

.downloadbutton:hover,
.downloadbutton:focus,
.downloadbutton:active {
    background: #286090;
    border-color: #204d74;
    color: #fff;
    text-decoration: none;
}

.downloadmusicbutton {
    cursor: pointer;
    -webkit-appearance: none;
    border-radius: 3px;
    border-style: solid;
    border-width: 1px;
    font-size: 14px;
    font-weight: 300;
    line-height: 30px;
    outline: none;
    white-space: nowrap;
    background: #3897f0;
    border-color: #3897f0;
    color: #fff;
    margin-right: 10px;
    padding: 0px 20px;
}

.downloadmusicbutton:hover {
    color: #fff;
}

/* About / FAQ */
.about {
    margin-top: 50px;
    padding: 20px;
}

.post-info {
    padding: 10px;
}

.post-info p {
    font-size: 19px;
}

.download-info {
    margin-top: 15px;
    padding-left: 13px;
}

/* Footer */
footer {
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: #CCC;
    background-color: #fff;
    border-top: 1px solid #e6e6e6;
}

footer p {
    padding: 10.5px;
    margin: 0px;
}

/* Header offset */
.header {
    margin-top: 70px;
}

/* General resets */
button,
input,
optgroup,
select,
textarea {
    margin: 0;
    color: inherit;
    font: inherit;
}

button {
    overflow: visible;
    border: none;
}

/* ======================================
   RapidSave Navbar — Bootstrap 3 navbar-default overrides
   ====================================== */
.navbar-default {
    background-color: #fff;
    border-color: #e6e6e6;
    border-radius: 0;
    margin-bottom: 0;
}

.navbar-default .navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: #000;
    font-size: 20px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.navbar-default .navbar-brand span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
}

.navbar-default .navbar-brand:hover {
    color: #000;
}

.navbar-default .navbar-nav>li>a {
    color: #555;
    font-size: 14px;
}

.navbar-default .navbar-nav>li>a:hover {
    color: #000;
}

.no-mrg {
    margin: 0;
}

/* Bootstrap 3 hamburger icon-bar styling (AMP-like, no border) */
.navbar-default .navbar-toggle {
    border: none;
    border-color: transparent;
    outline: none;
    box-shadow: none;
    margin-top: 13px;
    margin-right: 5px;
    padding: 9px 10px;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background-color: transparent;
    border: none;
    outline: none;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #333;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ======================================
   RapidSave Footer
   ====================================== */
footer {
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: #CCC;
    background-color: #fff;
    border-top: 1px solid #e6e6e6;
}

footer p {
    padding: 10.5px;
    margin: 0;
    font-size: 13px;
    line-height: 2;
}

footer a {
    color: #337ab7;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    cursor: pointer;
}

/* ======================================
   Override old dark theme from style.css
   ====================================== */
body {
    background: #fafafa;
    color: #333;
    font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

header.site-header {
    display: none;
}

.site-footer {
    display: none;
}

#page {
    display: block;
}

/* Global Content Typography - Forcing match with FAQs */
.card p, 
.entry-content,
.entry-content p {
    font-size: 17px !important;
    line-height: 1.8 !important;
    color: #333 !important;
}


/* ======================================
   Modern FAQ Accordion
   ====================================== */
.faq-accordion .panel {
    border: none;
    box-shadow: none;
    background: transparent;
    margin-bottom: 0;
}

.faq-accordion .panel-heading {
    padding: 15px 0;
    background: transparent;
    border-bottom: 1px solid #f0f0f0;
}

.faq-accordion .panel-title a {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    position: relative;
    padding-right: 30px;
    font-family: 'Lato', sans-serif;
}

.faq-accordion .panel-title a:hover,
.faq-accordion .panel-title a:focus {
    color: #337ab7;
}

/* Chevron Icon */
.faq-accordion .panel-title a:after {
    content: '\f107'; /* fa-chevron-down */
    font-family: 'FontAwesome';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: #337ab7;
    font-size: 18px;
}

.faq-accordion .panel-title a[aria-expanded="true"]:after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-accordion .panel-body {
    border-top: none !important;
    padding: 15px 0 25px 0;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.faq-accordion .panel-group .panel + .panel {
    margin-top: 0;
}


/* ======================================
   Reddit Info Page Refactor Styles
   ====================================== */
.thumbnail-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.thumbnail-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 5px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.play-overlay i {
    font-size: 30px;
    color: #fff;
    margin-left: 5px; /* offset for visual centering */
    text-shadow: none;
}

.thumbnail-wrapper:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.15);
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
}

.sd-versions-container {
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.sd-versions-toggle {
    display: inline-block;
    color: #337ab7;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sd-btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 10px 0;
}

.sd-download-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #444;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    min-width: 80px;
}

.sd-download-btn:hover {
    background: #337ab7;
    color: #fff;
    border-color: #337ab7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(51, 122, 183, 0.3);
    text-decoration: none;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
