/* File: assets/css/style.css */
/* Complete Styles for InspireUS Tools */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    line-height: 1.6;
    color: #333;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
    color: #666;
}

/* Links */
a {
    color: #237227;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #FFAA00;
}

/* Header */
header {
    background: #237227;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.logo span {
    color: #FFAA00;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

nav a:hover {
    border-bottom-color: #FFAA00;
}

/* Main Layout */
.main-layout {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.main-content {
    flex: 1;
}

/* Sidebar */
.sidebar {
    width: 300px;
}

/* Tool Wrapper (for tool pages) */
.tool-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.tool-header h1 {
    color: #237227;
    font-size: 42px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.tool-header p {
    color: #666;
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

/* Tool Card */
.tool-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    border-color: #237227;
    outline: none;
    box-shadow: 0 0 0 3px rgba(35,114,39,0.1);
}

/* Buttons */
.button-group {
    text-align: center;
    margin-top: 20px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #237227;
    color: white;
}

.btn-primary:hover {
    background: #1a5a1f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(35,114,39,0.3);
}

.btn-secondary {
    background: #FFAA00;
    color: #333;
}

.btn-secondary:hover {
    background: #e69900;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #237227;
    color: #237227;
}

.btn-outline:hover {
    background: #237227;
    color: white;
}

/* Results Card */
.results-card {
    margin-top: 30px;
    padding: 20px;
    background: #f0f7f0;
    border-radius: 10px;
    border-left: 4px solid #FFAA00;
}

.results-card h3 {
    color: #237227;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Cards Grid (for homepage and categories) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 40px;
    color: #237227;
    margin-bottom: 15px;
}

.card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.card-badge {
    background: #FFD786;
    color: #237227;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-block;
}

/* Category Page */
.category-header {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.category-icon {
    font-size: 48px;
    color: #237227;
}

.category-info h1 {
    color: #237227;
    font-size: 32px;
    margin-bottom: 10px;
}

.category-info p {
    color: #666;
    margin-bottom: 10px;
}

.category-stats {
    color: #FFAA00;
    font-weight: 600;
}

/* Search Page */
.search-box {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    max-width: 600px;
}

.search-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #237227;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
}

.search-button {
    background: #237227;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 16px;
}

.search-button:hover {
    background: #1a5a1f;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
}

.page-link {
    padding: 8px 12px;
    background: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s;
}

.page-link:hover,
.page-link.active {
    background: #237227;
    color: white;
    border-color: #237227;
}

/* Footer */
footer {
    background: #237227;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: #FFAA00;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #FFD786;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

/* Ads */
.ad-space {
    background: #FFD786;
    border: 2px dashed #237227;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    min-height: 250px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #237227;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Utilities */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }

/* Responsive */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tool-header h1 {
        font-size: 32px;
    }
    .category-header {
        flex-direction: column;
        text-align: center;
    }
    .search-form {
        flex-direction: column;
    }
    .search-input {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    .search-button {
        border-radius: 5px;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    nav a {
        margin: 0 5px;
    }
}

