/*
Theme Name: TechSoftonics AI 2026
Theme URI: https://techsoftonics.com/
Author: Web Development Agent
Author URI: https://trae.ai/
Description: A futuristic, AI-based WordPress theme for 2026. Features a dark mode, neon accents, and modern animations.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techsoftonics-ai
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Local Fonts */
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Regular.woff2') format('woff2'),
         url('fonts/Inter-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Medium.woff2') format('woff2'),
         url('fonts/Inter-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-SemiBold.woff2') format('woff2'),
         url('fonts/Inter-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Bold.woff2') format('woff2'),
         url('fonts/Inter-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-primary: #00f3ff; /* Cyan */
    --accent-secondary: #bc13fe; /* Neon Purple */
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
}

/* Add customizer CSS overrides if needed */

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-padding-top {
    padding-top: 80px;
}

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(188, 19, 254, 0.4);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Header */
.site-header {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-branding {
    font-size: 1.5rem;
    font-weight: 700;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: var(--text-secondary);
    font-weight: 500;
}

.main-navigation a:hover {
    color: var(--accent-primary);
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(188, 19, 254, 0.1) 0%, rgba(10, 10, 15, 0) 70%);
    background-color: transparent !important; /* CSS Transparency Check */
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: auto;
    display: block; /* Ensure visibility */
}

.hero .container {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Cards (Features/Tools) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card, .tool-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover, .tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.tool-thumbnail {
    margin: -30px -30px 20px -30px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    height: 200px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-img {
    color: var(--text-secondary);
    opacity: 0.5;
}

.tool-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tool-title {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.tool-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex-grow: 1;
}

.tool-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.tool-price.free {
    color: #4caf50;
}

.tool-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.tool-actions .btn {
    flex: 1;
    text-align: center;
}

/* Swiper Overrides */
.swiper {
    padding: 40px 20px 60px !important; /* Space for shadow/hover and pagination */
}

.swiper-slide {
    height: auto !important; /* Equal height cards */
}

.swiper-pagination-bullet {
    background: var(--text-secondary);
}

.swiper-pagination-bullet-active {
    background: var(--accent-primary);
}

.swiper-button-next, .swiper-button-prev {
    color: var(--accent-primary);
}


/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.post-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.post-thumbnail {
    height: 200px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 25px;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.post-title a {
    color: var(--text-primary);
}

.post-title a:hover {
    color: var(--accent-primary);
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    font-weight: 600;
}

/* Single Software Page */
.tool-single-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 60px;
}

.tool-single-thumb img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.tool-single-thumb .placeholder-img {
    background: var(--bg-secondary);
    height: 400px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.entry-title {
    font-size: 3rem;
    margin-bottom: 10px;
}

.entry-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.tool-price-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 30px;
}

.tool-price-large .free-badge {
    color: #4caf50;
    border: 2px solid #4caf50;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 1.5rem;
    vertical-align: middle;
}

.tool-single-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.tool-tags {
    margin-top: 20px;
    color: var(--text-secondary);
}

.tool-tags a {
    background: var(--glass-bg);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-right: 5px;
    color: var(--text-secondary);
}

.tool-tags a:hover {
    background: var(--accent-primary);
    color: #000;
}

.entry-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #d0d0e0;
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-widget h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: var(--text-secondary);
}

.footer-widget a:hover {
    color: var(--accent-primary);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent-gradient);
    color: #fff;
    transform: translateY(-3px);
}

.site-info {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Chat Widget */
.ai-chat-widget {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: none; /* Toggled via JS */
    flex-direction: column;
    z-index: 2000;
    overflow: hidden;
}

.chat-header {
    padding: 15px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chat-header button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
}

.chat-body {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.bot-message {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-message {
    background: var(--accent-primary);
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    background: var(--bg-tertiary);
}

.chat-input input {
    flex-grow: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 15px;
    color: #fff;
    outline: none;
}

.chat-input input:focus {
    border-color: var(--accent-primary);
}

.chat-input button {
    background: var(--accent-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.4);
    z-index: 2000;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chat-toggle:hover {
    transform: scale(1.1);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .tool-single-header { grid-template-columns: 1fr; }
    .tool-single-thumb .placeholder-img { height: 250px; }
}
