/* Extra UI Styles */

/* Feature 1: Toast Notification */
.safelink-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #2563eb;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: transform 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.safelink-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Feature 4: Countdown Progress Bar */
.safelink-progress-container {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
}

.safelink-progress-bar {
    height: 100%;
    background: #2563eb;
    width: 0%;
    transition: width 1s linear;
}

/* Confetti Effect */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: #f2d74e;
    z-index: 1000;
}

/* --- Modern Blog Redesign --- */

.new-blog-hero {
    background-color: #962c60; /* Burgundy from image */
    padding: 80px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.new-blog-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMjAgMTAgTDMwIDMwIEwxMCAzMCBaIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDUpIi8+PC9zdmc+');
    opacity: 0.3;
}

.hero-tagline {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
}

.hero-curve {
    margin-top: 15px;
}

.new-blog-container {
    max-width: 1200px;
    margin: -40px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.modern-blog-card {
    position: relative;
    border-radius: 20px;
    overflow: visible;
    transition: transform 0.3s ease;
}

.modern-blog-card:hover {
    transform: translateY(-5px);
}

.card-image-wrapper {
    width: 100%;
    height: 350px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.modern-blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modern-blog-img-placeholder {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
}

.card-content-overlay {
    position: absolute;
    bottom: -20px;
    left: 20px;
    right: 20px;
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
}

.modern-category {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

.modern-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.modern-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.modern-title a:hover {
    color: #2563eb;
}

.load-more-wrapper {
    text-align: center;
    margin-top: 80px;
}

.modern-load-more {
    background: #8b6562; /* Brownish-gray from image */
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.modern-load-more:hover {
    background: #7a5855;
}

/* Subscribe Section */
.modern-subscribe-section {
    background: #ffffff; /* White background as in image */
    padding: 100px 20px;
    text-align: center;
}

.subscribe-tagline {
    display: block;
    color: #1e293b;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.subscribe-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
}

.subscribe-desc {
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.modern-subscribe-form {
    max-width: 500px;
    margin: 0 auto;
}

.modern-subscribe-form .input-group {
    display: flex;
    background: white;
    padding: 8px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.modern-subscribe-form input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.subscribe-submit {
    background: #962c60; /* Burgundy from image */
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.subscribe-submit:hover {
    background: #7a244d;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .modern-blog-card { margin-bottom: 40px; }
}
