@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* =========================================
   VARIABLES & FB CLOUD THEME (FACEBOOK BLUE)
========================================= */
:root {
    --fb-gradient: linear-gradient(45deg, #1877F2 0%, #115cbf 100%);
    --fb-gradient-hover: linear-gradient(45deg, #166ce6 0%, #0e4b9e 100%);
    --text-dark: #1c1e21;
    --text-muted: #65676b;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f0f2f5;
    background-image: 
        radial-gradient(at 0% 0%, rgba(24, 119, 242, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(17, 92, 191, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(24, 119, 242, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(17, 92, 191, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* =========================================
   HEADER (BLUE)
========================================= */
header {
    background: #1877F2;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(24, 119, 242, 0.2);
}

.nav-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 700;
}

.logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo-text {
    color: #ffffff;
    letter-spacing: -0.5px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background: #ffffff;
    border-radius: 4px;
    transition: 0.3s;
}

.nav-menu {
    display: none;
    flex-direction: column;
    background: #ffffff;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.nav-menu.active {
    display: flex;
}

.nav-menu a {
    padding: 18px 25px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.nav-menu a:hover {
    background: rgba(0,0,0,0.02);
    color: #1877F2;
}

/* =========================================
   MAIN LAYOUT & CARDS
========================================= */
main {
    flex: 1;
    max-width: 850px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 25px;
}

.page-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.page-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 650px;
    margin-inline: auto;
}

.generator-card, .feature-card, .content-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

.generator-card {
    padding: 40px;
    margin-bottom: 70px;
    position: relative;
    overflow: hidden;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input[type="url"] {
    width: 100%;
    padding: 18px 25px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    font-size: 1.05rem;
    outline: none;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

input[type="url"]::placeholder {
    color: #999;
}

input[type="url"]:focus {
    border-color: #1877F2;
    box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.15);
}

.btn-generate {
    background: var(--fb-gradient);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.25);
    width: 100%;
}

.btn-generate:hover {
    background: var(--fb-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(24, 119, 242, 0.35);
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-card {
    padding: 35px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    margin-bottom: 15px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* =========================================
   STANDARD TEXT PAGES (ABOUT & PRIVACY)
========================================= */
.content-card {
    padding: 40px; 
}

.content-card h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.content-card p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.content-card p:last-child {
    margin-bottom: 0;
}

/* =========================================
   RESULTS AREA
========================================= */
.results-area {
    margin-bottom: 70px;
}

.result-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    padding: 40px;
}

.result-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.result-uploader {
    color: #1877F2;
    font-weight: 600;
    margin-bottom: 4px;
}

.result-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.media-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.media-image,
.media-video {
    width: 100%;
    border-radius: 12px;
    display: block;
    background: #000;
    max-height: 400px;
    object-fit: contain;
}

.media-preview {
    position: relative;
}

.btn-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--fb-gradient);
    color: white;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.25);
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--fb-gradient);
    color: white;
    font-weight: 700;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: var(--fb-gradient-hover);
    transform: translateY(-2px);
}

.btn-regenerate {
    margin-top: 30px;
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: 2px solid #1877F2;
    background: transparent;
    color: #1877F2;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-regenerate:hover {
    background: #1877F2;
    color: white;
}

.loader-card,
.error-card {
    text-align: center;
}

.spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 20px;
    border: 4px solid rgba(24, 119, 242, 0.15);
    border-top-color: #1877F2;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-card strong {
    color: #1877F2;
}

.error-card p {
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* =========================================
   FOOTER
========================================= */
footer {
    padding: 50px 20px;
    text-align: center;
    margin-top: auto;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    list-style: none;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.footer-nav a:hover {
    color: #1877F2;
}

.copyright {
    color: #999;
    font-size: 0.9rem;
    font-weight: 400;
}
