@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --primary: #04825d;
    --primary-hover: #036b4c;
    --bg: #f4f7f6;
    --white: #ffffff;
    --text: #333333;
    --text-muted: #555555;
    --border: #e0e6ed;
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--bg); color: var(--text); line-height: 1.8; display: flex; flex-direction: column; min-height: 100vh; font-size: 16px; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { color: #111; margin-bottom: 15px; }

/* 3D Logo Text */
.logo-3d {
    font-size: 30px; font-weight: 900; color: var(--primary);
    text-shadow: 1px 1px 0 #025940, 2px 2px 0 #025940, 3px 3px 0 #013324, 4px 4px 8px rgba(0,0,0,0.4);
    letter-spacing: 2px; display: flex; align-items: center; gap: 10px;
}

/* Header & Nav */
header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; border-bottom: 2px solid var(--primary); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.nav-links { display: flex; gap: 20px; font-weight: 600; color: var(--text-muted); flex-wrap: wrap; }
.nav-links a:hover { color: var(--primary); }

/* AdSense Placeholders */
.ad-space { background: #e9ecef; color: #adb5bd; text-align: center; display: flex; align-items: center; justify-content: center; border: 1px dashed #ced4da; font-weight: bold; margin-bottom: 20px; }
.ad-leaderboard { width: 100%; height: 90px; margin: 20px auto; max-width: 1200px; }
.ad-sidebar { width: 100%; height: 250px; }
.ad-in-article { width: 100%; height: 100px; margin: 30px 0; }

/* Main Layout */
.hero { background: linear-gradient(135deg, var(--primary), #024a35); color: var(--white); text-align: center; padding: 50px 20px; }
.main-container { max-width: 1200px; margin: 30px auto; padding: 0 20px; display: grid; grid-template-columns: 3fr 1fr; gap: 30px; flex: 1; }
.page-content { background: var(--white); padding: 40px; border-radius: 8px; box-shadow: var(--shadow); grid-column: 1 / -1; }
.page-content p { margin-bottom: 20px; text-align: justify; }
.page-content ul { margin-left: 20px; margin-bottom: 20px; }
.seo-article { background: var(--white); padding: 40px; border-radius: 8px; box-shadow: var(--shadow); margin-top: 40px; }

/* Tools UI */
.tool-box { background: var(--white); border-radius: 8px; padding: 25px; box-shadow: var(--shadow); margin-bottom: 30px; border-top: 4px solid var(--primary); }
.tool-input { width: 100%; padding: 15px; border: 1px solid var(--border); border-radius: 5px; font-size: 16px; margin-bottom: 15px; outline: none; background: #fafafa; }
textarea.tool-input { height: 200px; resize: vertical; }
.tool-input:focus { border-color: var(--primary); background: #fff; }
.controls { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.btn { padding: 12px 25px; border: none; border-radius: 5px; cursor: pointer; font-weight: 600; color: var(--white); transition: 0.2s; font-size: 16px; }
.btn-green { background: var(--primary); }
.btn-green:hover { background: var(--primary-hover); }
.btn-gray { background: #6c757d; }
.tool-result-box { margin-top: 15px; display: none; padding: 15px; border-radius: 5px; border: 1px solid var(--border); background: #f8f9fa; }

/* Grid */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin-top: 20px; }
.tool-card { background: var(--white); padding: 20px; border-radius: 8px; border: 1px solid var(--border); text-align: center; cursor: pointer; transition: 0.3s; box-shadow: var(--shadow); display:flex; flex-direction:column; align-items:center; justify-content:center; }
.tool-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.tool-card i { font-size: 35px; color: var(--primary); margin-bottom: 15px; }

/* Sidebar */
.sidebar-widget { background: var(--white); padding: 20px; border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 20px; border: 1px solid var(--border); }
.sidebar-list { list-style: none; }
.sidebar-list li { margin-bottom: 10px; border-bottom: 1px dashed var(--border); padding-bottom: 10px; }

/* Footer */
footer { background: #1a1a1a; color: #fff; padding: 50px 20px 20px; margin-top: auto; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; border-bottom: 1px solid #333; padding-bottom: 30px; }
.footer-col h3 { color: var(--primary); margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #ccc; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 20px; color: #888; font-size: 14px; }

/* ====== MOBILE RESPONSIVENESS ====== */
@media(max-width: 768px) {
    .nav-container { flex-direction: column; gap: 15px; text-align: center; }
    .nav-links { justify-content: center; width: 100%; gap: 15px; font-size: 14px; }
    .main-container { grid-template-columns: 1fr; padding: 0 15px; }
    .tools-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .tool-card h3 { font-size: 14px; }
    .page-content, .seo-article, .tool-box { padding: 20px; }
    .hero { padding: 30px 15px; }
    .hero h1 { font-size: 24px; }
    .footer-grid { text-align: center; }
}