/* ================================================== */
/* ==      THE FINAL, CLEANED, AND CORRECT CSS     == */
/* ================================================== */

/* --- 1. Global & Base Styles --- */
html {
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #ffffff;
    color: #1a1a1a;
    padding-top: 80px;
    padding-bottom: 150px;
    box-sizing: border-box;
}

/* --- 2. Main Container --- */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center; /* This centers inline text like H1 and P */
    box-sizing: border-box;
}

/* --- 3. Header & Navigation --- */
.site-header-nav {
    width: 100%;
    background-color: #1F1F1F;
    border-bottom: 1px solid #333;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #FFFFFF;
    gap: 12px;
}

.logo-link span {
    font-size: 1.5rem;
    font-weight: 600;
}

.logo-svg {
    transition: transform 0.3s ease-in-out;
}

.logo-link:hover .logo-svg {
    transform: scale(1.1);
}

.main-nav {
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: #a0a0a0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #FFFFFF;
}

/* --- 4. Homepage Hero Section --- */
.main-content-wrapper {
    margin: 60px 0 40px 0;
    text-align: center;
}

.main-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.main-content-wrapper p {
    font-size: 1.2rem;
    color: #555;
    max-width: 500px;
    margin: 0 auto;
}

.url-form {
    display: flex;
    flex-direction: row;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    max-width: 700px;
    margin: 0 auto; /* THIS IS THE KEY to centering a block-level element */
}

.url-form:focus-within {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
    border-color: #999;
}

.input-wrapper {
    flex-grow: 1;
}

.url-form input[type="url"] {
    border: none;
    height: 60px;
    padding: 0 25px;
    font-size: 1.05rem;
    width: 100%;
    box-sizing: border-box;
}

.url-form input[type="url"]:focus {
    outline: none;
}

.url-form button {
    height: 60px;
    border: none;
    font-size: 1.1rem;
    padding: 0 40px;
    border-left: 1px solid #eee;
    background-color: #000000;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.url-form button:hover {
    background-color: #333;
}

.options-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.option-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f7f7f7;
    border: 1px solid #e0e0e0;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.option-button:hover {
    border-color: #c0c0c0;
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.option-button svg {
    stroke: #555;
}

/* --- 5. Other Page Styles (Convert, Static, SEO) --- */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #000000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 80px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background-color: #fff0f0;
    color: #d8000c;
    border: 1px solid #ffd2d2;
    padding: 15px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
}

.iframe-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease-in-out;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

.iframe-container.expanded {
    max-height: 1500px;
}

.content-section, .static-page-content {
    max-width: 800px;
    margin: 60px auto 0;
    padding: 40px 20px;
    text-align: left;
    line-height: 1.7;
    color: #333;
    background-color: #fdfdfd;
    border-top: 1px solid #eee;
}

.content-section h2, .static-page-content h1, .static-page-content h2 {
    color: #1a1a1a;
    margin-top: 1.5em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
}

.content-section h2:first-of-type {
    margin-top: 0;
}

.content-section h2, .static-page-content h2 {
    font-size: 1.4rem;
    border-bottom: 2px solid #f0f0f0;
}

.static-page-content h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid #f0f0f0;
}

.content-section h3, .static-page-content h3 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    border-bottom: none;
}

/* --- 6. Footer --- */
.site-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1F1F1F;
    color: #a0a0a0;
    padding: 30px 0;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    box-sizing: border-box;
}

.footer-links {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-copyright {
    font-size: 0.8rem;
    opacity: 0.7;
}

@media (max-width: 600px) {
    .logo-link span {
        display: none;
    }
    .main-nav {
        gap: 15px;
    }
    .main-nav a {
        font-size: 0.85rem;
    }
    .main-title {
        font-size: 2.2rem;
    }
    .main-content-wrapper p {
        font-size: 1rem;
    }
    .url-form {
        flex-direction: column;
    }
    .url-form button {
        border-left: none;
        border-top: 1px solid #eee;
    }
}
.page-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px; 
    box-sizing: border-box;
    text-align: center;
}

.form-error .url-form {
    border-color: #D8000C !important;

    animation: shake 0.6s cubic-bezier(.36,.07,.19,.97) both;
}

.error-feedback {
    color: #D8000C;
    font-weight: 500;
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

.success-section {
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 30px; 
    text-align: center;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.success-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0 0 25px 0;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.success-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap; 
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.kofi-button {
    background-color: #ff5e5b;
    color: white;
    border-color: #ff5e5b;
}

.kofi-button:hover {
    background-color: #e04c4a;
    border-color: #e04c4a;
    transform: translateY(-2px);
}

.next-button {
    background-color: white;
    color: #333;
    border-color: #ccc;
}

.next-button:hover {
    background-color: #f7f7f7;
    border-color: #aaa;
    transform: translateY(-2px);
}

