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

:root {
    --primary: #FF0000; /* YouTube Red */
    --dark: #1a1a1a;
    --light: #ffffff;
    --gray: #f4f4f4;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

body { background-color: var(--gray); color: var(--dark); line-height: 1.6; }

/* Header */
header { background: var(--light); padding: 1rem 5%; box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; }
header h1 { font-weight: 700; color: var(--primary); font-size: 1.5rem; }
nav a { text-decoration: none; color: var(--dark); margin-left: 20px; font-weight: 500; }

/* Hero Tool Section */
.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 0 0 50px 50px;
}
.hero h2 { font-size: 2.5rem; margin-bottom: 15px; }
.hero p { max-width: 600px; margin: 0 auto 30px; opacity: 0.9; }

/* The Tool Box */
.tool-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: -50px auto 50px;
    position: relative;
}

.input-group { display: flex; gap: 10px; flex-wrap: wrap; }
input[type="text"] {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
}
input[type="text"]:focus { border-color: var(--primary); }

button.btn-main {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}
button.btn-main:hover { background: #cc0000; transform: translateY(-2px); }

/* Results Area */
.result-area { margin-top: 30px; text-align: center; }
.thumb-preview { width: 100%; max-width: 500px; border-radius: 10px; margin-bottom: 20px; box-shadow: var(--shadow); }
.download-links a {
    display: inline-block;
    margin: 5px;
    padding: 10px 20px;
    background: var(--dark);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
}
.download-links a:hover { background: var(--primary); }

/* Blog Section */
.blog-section { max-width: 1100px; margin: 50px auto; padding: 20px; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2rem; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.blog-card { background: white; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; }
.blog-card:hover { transform: translateY(-5px); }
.blog-content { padding: 20px; }
.blog-content h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--dark); }
.blog-content p { font-size: 0.9rem; color: #666; margin-bottom: 15px; }
.read-more { color: var(--primary); text-decoration: none; font-weight: 600; }

/* Footer */
footer { background: var(--dark); color: white; padding: 40px 20px; text-align: center; margin-top: 50px; }
footer a { color: #aaa; text-decoration: none; margin: 0 10px; }
footer a:hover { color: white; }

/* Responsive */
@media (max-width: 600px) {
    .hero h2 { font-size: 1.8rem; }
    .input-group { flex-direction: column; }
    button.btn-main { width: 100%; }
}
/* --- PROFESSIONAL BLOG GRID DESIGN (Add to style.css) --- */

.blog-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 800;
    background: -webkit-linear-gradient(45deg, #FF0000, #2b2b2b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    top: 0;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* The "Virtual Thumbnail" Area */
.card-thumb {
    height: 180px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    position: relative;
}

/* Unique Gradients for each topic type */
.grad-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } /* Psychology */
.grad-2 { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%); } /* Tools */
.grad-3 { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); } /* Tech */
.grad-4 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); } /* A/B Test */
.grad-5 { background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%); } /* Ethics */
.grad-6 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); } /* Design */
.grad-7 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); } /* Spy */
.grad-8 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); } /* SEO */
.grad-9 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); } /* Revive */
.grad-10 { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); } /* Mistakes */

/* Category Badge */
.card-cat {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.4;
}

.blog-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-btn {
    display: inline-block;
    padding: 10px 0;
    color: #d32f2f;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    transition: 0.3s;
}

.read-btn::after {
    content: ' →';
    transition: 0.3s;
}

.read-btn:hover {
    color: #b71c1c;
    letter-spacing: 1px;
}