/**
 * TechSuspended - Custom Styles
 * Additional styles and refinements
 *
 * @package TechSuspended
 */

/* ==========================================================================
   SPINNER
   ========================================================================== */

.ts-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ts-spin 0.6s linear infinite;
}

/* ==========================================================================
   WORDPRESS CONTENT STYLES
   ========================================================================== */

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: var(--ts-space-2xl);
    margin-bottom: var(--ts-space-md);
}

.entry-content p {
    margin-bottom: var(--ts-space-lg);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: var(--ts-space-lg);
    padding-left: var(--ts-space-xl);
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content li {
    margin-bottom: var(--ts-space-sm);
    color: var(--ts-gray-700);
}

.entry-content blockquote {
    margin: var(--ts-space-2xl) 0;
    padding: var(--ts-space-xl) var(--ts-space-2xl);
    border-left: 4px solid var(--ts-primary);
    background: var(--ts-gray-50);
    border-radius: 0 var(--ts-radius-md) var(--ts-radius-md) 0;
    font-style: italic;
    color: var(--ts-gray-700);
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content pre {
    background: var(--ts-dark);
    color: var(--ts-gray-300);
    padding: var(--ts-space-xl);
    border-radius: var(--ts-radius-md);
    overflow-x: auto;
    margin-bottom: var(--ts-space-lg);
    font-family: var(--ts-font-mono);
    font-size: var(--ts-text-sm);
    line-height: 1.8;
}

.entry-content code {
    background: var(--ts-gray-100);
    color: var(--ts-primary);
    padding: 2px 8px;
    border-radius: var(--ts-radius-sm);
    font-family: var(--ts-font-mono);
    font-size: 0.9em;
}

.entry-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.entry-content img {
    border-radius: var(--ts-radius-md);
    margin: var(--ts-space-xl) 0;
}

.entry-content a {
    color: var(--ts-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.entry-content a:hover {
    color: var(--ts-primary-dark);
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--ts-space-xl);
    border-radius: var(--ts-radius-md);
    overflow: hidden;
    border: 1px solid var(--ts-gray-200);
}

.entry-content th {
    background: var(--ts-gray-50);
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--ts-gray-200);
}

.entry-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--ts-gray-200);
}

.entry-content hr {
    border: none;
    height: 1px;
    background: var(--ts-gray-200);
    margin: var(--ts-space-2xl) 0;
}

/* ==========================================================================
   COMMENTS
   ========================================================================== */

.comments-area {
    margin-top: var(--ts-space-3xl);
    padding-top: var(--ts-space-2xl);
    border-top: 1px solid var(--ts-gray-200);
}

.comments-title {
    font-size: var(--ts-text-2xl);
    margin-bottom: var(--ts-space-2xl);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    padding: var(--ts-space-xl) 0;
    border-bottom: 1px solid var(--ts-gray-100);
}

.comment-list .comment-body {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: var(--ts-space-md);
}

.comment-author .avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--ts-radius-full);
}

.comment-author .fn {
    font-weight: 600;
    color: var(--ts-dark);
}

.comment-metadata {
    font-size: var(--ts-text-xs);
    color: var(--ts-gray-500);
    margin-bottom: var(--ts-space-sm);
}

.comment-content p {
    color: var(--ts-gray-700);
    font-size: var(--ts-text-sm);
}

.comment-reply-link {
    font-size: var(--ts-text-xs);
    font-weight: 600;
    color: var(--ts-primary);
}

.comment-respond {
    margin-top: var(--ts-space-2xl);
}

.comment-reply-title {
    font-size: var(--ts-text-xl);
    margin-bottom: var(--ts-space-lg);
}

.comment-form label {
    display: block;
    font-size: var(--ts-text-sm);
    font-weight: 600;
    color: var(--ts-dark);
    margin-bottom: var(--ts-space-xs);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--ts-gray-300);
    border-radius: var(--ts-radius-md);
    font-family: var(--ts-font-body);
    font-size: var(--ts-text-sm);
    margin-bottom: var(--ts-space-md);
    outline: none;
    transition: border-color var(--ts-transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--ts-primary);
}

.comment-form .form-submit .submit {
    background: var(--ts-gradient-primary);
    color: var(--ts-white);
    border: none;
    padding: 14px 32px;
    border-radius: var(--ts-radius-full);
    font-weight: 600;
    font-size: var(--ts-text-sm);
    cursor: pointer;
    transition: all var(--ts-transition-base);
    font-family: var(--ts-font-body);
}

.comment-form .form-submit .submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--ts-shadow-glow);
}

/* ==========================================================================
   POST NAVIGATION
   ========================================================================== */

.post-navigation {
    margin-top: var(--ts-space-3xl);
    padding-top: var(--ts-space-xl);
    border-top: 1px solid var(--ts-gray-200);
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ts-space-xl);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    padding: var(--ts-space-lg);
    background: var(--ts-gray-50);
    border-radius: var(--ts-radius-md);
    transition: all var(--ts-transition-fast);
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    background: var(--ts-white);
    box-shadow: var(--ts-shadow-md);
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: var(--ts-text-xs);
    color: var(--ts-gray-500);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-navigation .nav-title {
    font-weight: 600;
    color: var(--ts-dark);
    font-size: var(--ts-text-sm);
}

/* ==========================================================================
   PAGINATION WORDPRESS COMPAT
   ========================================================================== */

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ts-space-sm);
    padding: var(--ts-space-2xl) 0;
}

.nav-links .page-numbers {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ts-radius-md);
    font-weight: 600;
    font-size: var(--ts-text-sm);
    transition: all var(--ts-transition-fast);
    border: 1px solid var(--ts-gray-200);
    color: var(--ts-gray-700);
    text-decoration: none;
}

.nav-links .page-numbers:hover {
    border-color: var(--ts-primary);
    color: var(--ts-primary);
}

.nav-links .page-numbers.current {
    background: var(--ts-gradient-primary);
    color: var(--ts-white);
    border-color: transparent;
}

/* ==========================================================================
   WOOCOMMERCE CART PAGE
   ========================================================================== */

.woocommerce-cart .woocommerce {
    padding: var(--ts-space-2xl) 0;
}

.woocommerce-checkout .woocommerce {
    padding: var(--ts-space-2xl) 0;
}

.woocommerce form .form-row label {
    font-weight: 600;
    font-size: var(--ts-text-sm);
    color: var(--ts-dark);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    border: 1px solid var(--ts-gray-300);
    border-radius: var(--ts-radius-md);
    padding: 12px 16px;
    font-family: var(--ts-font-body);
    font-size: var(--ts-text-sm);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--ts-primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
    outline: none;
}

/* ==========================================================================
   GUTENBERG BLOCK STYLES
   ========================================================================== */

.wp-block-cover {
    border-radius: var(--ts-radius-lg);
    overflow: hidden;
}

.wp-block-button__link {
    background: var(--ts-gradient-primary) !important;
    border-radius: var(--ts-radius-full) !important;
    padding: 14px 32px !important;
    font-weight: 600 !important;
    font-family: var(--ts-font-body) !important;
    transition: all var(--ts-transition-base) !important;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: var(--ts-shadow-glow);
}

.wp-block-quote {
    border-left-color: var(--ts-primary);
}

.wp-block-separator {
    border-color: var(--ts-gray-200);
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .ts-header,
    .ts-footer,
    .ts-back-to-top,
    .ts-mini-cart,
    .ts-mini-cart-overlay,
    .ts-preloader,
    .ts-cta,
    .ts-newsletter {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .ts-section {
        padding: 20px 0;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
