/*
Theme Name: AdsNetwork Theme
Theme URI: https://adsnetwork.com
Author: AdsNetwork
Author URI: https://adsnetwork.com
Description: Custom WordPress theme for AdsNetwork with React Gutenberg blocks and dynamic content management
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adsnetwork-theme
Tags: custom-blocks, gutenberg, advertising, business

AdsNetwork Theme - Premium Digital Advertising Platform Theme
*/

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.875rem; }
}

/* Links */
a {
    color: #6859ef;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #5647d4;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: #6859ef;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(104, 89, 239, 0.3);
}

.btn-primary:hover {
    background-color: #5647d4;
    box-shadow: 0 10px 15px -3px rgba(104, 89, 239, 0.4);
    color: #ffffff;
}

.btn-secondary {
    background-color: #ffffff;
    color: #6859ef;
    border: 2px solid #6859ef;
}

.btn-secondary:hover {
    background-color: #6859ef;
    color: #ffffff;
}

/* Cards */
.card {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
}

/* Section titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: #111827;
    margin-bottom: 1rem;
}

.section-title p {
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Animation utilities */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Logo scroll animation */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

/* Hide scrollbar for category pills */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #6859ef 0%, #5647d4 100%);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* Text utilities */
.text-gradient {
    background: linear-gradient(135deg, #6859ef 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* WordPress block editor compatibility */
.wp-block {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

.alignwide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}
