/* Digital Ad Analytics Theme - Extended Styles */

/* GENERAL STYLES */
body {
    font-family: 'Sora', 'Merriweather', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--primary-color);
}

/* ACCESSIBILITY */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* SKIP LINK */
.skip-link {
    background: var(--accent-orange);
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, .2);
    color: white;
    display: block;
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    font-weight: bold;
    left: -9999px;
    outline: none;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: -9999px;
    z-index: 100000;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
    width: auto;
    height: auto;
}

/* LINKS */
a {
    transition: all 0.3s ease;
}

a:focus {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

/* IMAGES */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* FORMS */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--primary-color);
    font-family: 'Sora', sans-serif;
    padding: 0.75rem;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* BUTTONS */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    background-color: var(--accent-orange);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

/* LISTS */
ul, ol {
    list-style-position: outside;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* CODE */
code, pre {
    background-color: #f5f5f5;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    padding: 2px 6px;
}

pre {
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

/* BLOCKQUOTE */
blockquote {
    border-left: 4px solid var(--accent-teal);
    padding-left: 1.5rem;
    margin-left: 0;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--secondary-color);
}

/* TABLES */
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.5rem;
}

table th,
table td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
}

table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: var(--primary-color);
}

/* NAVIGATION MENU */
.wp-block-navigation {
    display: flex;
    gap: 2rem;
}

.wp-block-navigation a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.wp-block-navigation a:hover {
    color: var(--accent-teal);
}

/* COMMENT FORM */
.comment-respond {
    margin-top: 3rem;
    padding: 2rem;
    background: #f5f5f5;
    border-radius: 8px;
}

.comment-respond h3 {
    margin-bottom: 1.5rem;
}

.comment-form-comment textarea {
    width: 100%;
    min-height: 150px;
}

/* COMMENTS LIST */
.commentlist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f5f5f5;
    border-radius: 8px;
}

.comment .comment {
    margin-left: 2rem;
    margin-top: 1rem;
}

.comment-meta {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.comment-meta a {
    color: var(--accent-teal);
}

.comment-content p {
    margin-bottom: 1rem;
}

/* WIDGETS */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    margin-bottom: 0.5rem;
}

.widget a {
    color: var(--accent-teal);
    text-decoration: none;
}

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

/* WORDPRESS BLOCK EDITOR BLOCKS */
.wp-block-image {
    margin: 2rem 0;
}

.wp-block-image img {
    border-radius: 8px;
}

.wp-block-button__link {
    background-color: var(--accent-orange);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.wp-block-button__link:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
}

/* RESPONSIVE MEDIA */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .site-header {
        flex-direction: column;
        gap: 1rem;
    }

    .site-navigation {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }

    .comment {
        padding: 1rem;
    }

    .comment .comment {
        margin-left: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="url"],
    input[type="password"],
    input[type="search"],
    input[type="number"],
    input[type="tel"],
    textarea,
    select,
    .btn {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* PRINT STYLES */
@media print {
    body {
        background: white;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .site-header,
    .site-footer,
    .no-print {
        display: none;
    }
}
