/* CreatorAiHub - Simple and Clean Styling */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background-color: #06060e;
}

/* Header & Navigation */
.navbar, .main-header {
    background-color: #06060e;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #334155;
    height: 60px;
}

.nav-container, .header-nav {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #a78bfa;
    margin: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo span {
    color: #fff;
}

nav, .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a, .nav-links a {
    text-decoration: none;
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

nav a:hover, .nav-links a:hover {
    color: #e2e8f0;
}

nav a.active, .nav-links a.nav-active {
    color: #a78bfa;
    background-color: transparent;
}

/* Main Content */
.page-section, .page-content {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.page-section h1, .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1rem;
    text-align: center;
}

.page-section p, .page-text {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.7;
    text-align: center;
}

/* Tool Card Styles */
.tool-card {
    background-color: #0d0d1c;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 1px solid #1e1e32;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    border-color: #3d4a5c;
}

/* Tool Preview Area */
.tool-preview {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #11102a 0%, #1a1040 50%, #0d0d1c 100%);
}

.tool-preview.no-img {
    background: linear-gradient(135deg, #13103a 0%, #1e1050 40%, #10082a 100%);
}

.tool-preview.no-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(124,58,237,0.05) 20px,
        rgba(124,58,237,0.05) 40px
    );
    pointer-events: none;
}

.tool-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.tool-card:hover .tool-preview img {
    transform: scale(1.05);
}

.tool-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(15, 23, 42, 0.8);
    color: #fff;
    backdrop-filter: blur(8px);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tool Content Area */
.tool-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-icon {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
}

.tool-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
}

.tool-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cta-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    transform: translateY(-1px);
}

/* Blog Styles */
.blog-list {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background-color: #0d0d1c;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #1e1e32;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    border-color: #3d4a5c;
}

.blog-card h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.blog-card h2 a {
    color: #f1f5f9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h2 a:hover {
    color: #a78bfa;
}

.blog-card p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: left;
}

.blog-card .cta-btn {
    display: inline-block;
    width: auto;
    margin-top: 0.5rem;
}

/* Tools Grid Layout */
.tools-grid, .tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.category-section {
    margin-bottom: 50px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.category-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

/* Forms */
form {
    background-color: #0d0d1c;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-top: 2rem;
    border: 1px solid #1e1e32;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

label {
    display: block;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

input, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #1e1e32;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background-color: #06060e;
    color: #e2e8f0;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #a78bfa;
}

/* Footer */
footer, .main-footer {
    background-color: #06060e;
    color: #94a3b8;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 1px solid #1e1e32;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar, .main-header {
        padding: 10px;
        flex-direction: column;
        height: auto;
    }
    
    .nav-container, .header-nav {
        flex-direction: column;
        gap: 10px;
    }

    nav, .nav-links {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a, .nav-links a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .page-section, .page-content {
        margin: 2rem auto;
        padding: 0 1rem;
    }
    
    .page-section h1, .page-title {
        font-size: 2rem;
    }
}