/**
 * CLANSAY Components - UI Components
 *
 * @package CLANSAY
 * @since 1.0.0
 */

/* ================================================
   LOGO
   ================================================ */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--glow-1);
}

.logo-text {
    font-size: 24px;
    font-weight: var(--font-weight-extrabold);
    color: var(--text);
    letter-spacing: -0.02em;
}

.logo-text span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 12px var(--glow-1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow-1);
    color: white;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text);
    border: 1px solid var(--border);
}

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

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

.btn-outline:hover {
    background: var(--accent-1);
    color: white;
}

.btn-pill {
    border-radius: var(--radius-full);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-md);
}

/* Subscribe Button */
.subscribe-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 10px 20px;
    background: var(--gradient);
    color: white;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-slow);
    box-shadow: 0 4px 12px var(--glow-1);
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow-1);
    color: white;
}

.subscribe-btn i {
    font-size: 12px;
}

/* Filter Buttons */
.filter-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-btn:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
}

.filter-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px var(--glow-1);
}

/* Page Buttons */
.page-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.page-btn:hover,
.page-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px var(--glow-1);
}

/* ================================================
   CATEGORY BADGES
   ================================================ */
.post-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--gradient);
    color: white;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    width: fit-content;
    box-shadow: 0 4px 12px var(--glow-1);
}

.post-category.tech {
    background: var(--color-tech);
}

.post-category.finance {
    background: var(--color-finance);
}

.post-category.lifestyle {
    background: var(--color-lifestyle);
}

.post-category.productivity {
    background: var(--color-productivity);
}

/* ================================================
   ARTICLE CARDS
   ================================================ */
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-bounce);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--glow-1);
}

.article-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-body {
    padding: var(--space-4);
}

.article-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-snug);
    margin-bottom: var(--space-3);
    transition: color var(--transition-base);
}

.article-card:hover .article-title {
    color: var(--accent-1);
}

.article-excerpt {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.article-stats {
    display: flex;
    gap: var(--space-3);
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ================================================
   FEATURED CARD
   ================================================ */
.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-slow);
}

.featured-card:hover {
    border-color: var(--glow-1);
    box-shadow: var(--shadow-xl);
}

.featured-image {
    height: 340px;
    overflow: hidden;
    border-right: 1px solid var(--border-light);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.03);
}

.featured-content {
    padding: var(--space-8) var(--space-8) var(--space-8) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 14px;
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid var(--accent-1);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--accent-1);
    width: fit-content;
    margin-bottom: var(--space-4);
}

.featured-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-snug);
    margin-bottom: var(--space-4);
    transition: color var(--transition-base);
}

.featured-card:hover .featured-title {
    color: var(--accent-1);
}

.featured-excerpt {
    font-size: var(--font-size-md);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-6);
}

/* ================================================
   POST META
   ================================================ */
.post-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--font-size-base);
    color: var(--text-muted);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ================================================
   WIDGETS
   ================================================ */
.widget {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
}

.widget-title {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.widget-title i {
    color: var(--accent-1);
}

/* Newsletter Widget */
.widget-newsletter {
    background: var(--gradient);
    color: white;
    border: none;
}

.widget-newsletter .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.widget-newsletter p {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    margin-bottom: var(--space-4);
}

.widget-newsletter input[type="email"] {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: none;
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    margin-bottom: var(--space-3);
}

.widget-newsletter button {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: white;
    color: var(--accent-1);
    border: none;
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
}

.widget-newsletter button:hover {
    background: var(--bg-secondary);
}

/* Trending Widget */
.trending-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-light);
}

.trending-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trending-number {
    width: 28px;
    height: 28px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--text-muted);
    flex-shrink: 0;
}

.trending-content {
    flex: 1;
}

.trending-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-snug);
    margin-bottom: 4px;
    transition: color var(--transition-base);
}

.trending-item:hover .trending-title {
    color: var(--accent-1);
}

.trending-meta {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* ================================================
   SEARCH BOX
   ================================================ */
.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0 4px 0 16px;
    height: 42px;
    transition: all var(--transition-base);
}

.search-box:focus-within {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px var(--glow-1);
}

.search-box input {
    border: none;
    background: transparent;
    font-size: var(--font-size-base);
    color: var(--text);
    width: 140px;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.search-box button:hover {
    background: var(--gradient);
    color: white;
}

/* ================================================
   FORMS
   ================================================ */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text);
    margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    color: var(--text);
    transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px var(--glow-1);
}

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

/* ================================================
   SHARE BUTTONS
   ================================================ */
.share-bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.share-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
}

.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    transition: all var(--transition-base);
}

.share-btn:hover {
    color: white;
}

.share-btn.twitter:hover {
    background: #1da1f2;
}

.share-btn.facebook:hover {
    background: #4267b2;
}

.share-btn.linkedin:hover {
    background: #0077b5;
}

.share-btn.email:hover {
    background: var(--accent-1);
}

/* ================================================
   AUTHOR BOX
   ================================================ */
.author-box {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin: var(--space-8) 0;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-2);
}

.author-bio {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-3);
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--accent-1);
}

.author-link:hover {
    color: var(--accent-2);
}

/* ================================================
   TAGS
   ================================================ */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin: var(--space-6) 0;
}

.tags-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.tag {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.tag:hover {
    background: var(--accent-1);
    color: white;
}

/* ================================================
   BREADCRUMBS
   ================================================ */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.breadcrumbs a {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.breadcrumbs a:hover {
    color: var(--accent-1);
}

.breadcrumbs .separator {
    font-size: 10px;
}

/* ================================================
   PAGINATION (WordPress)
   ================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin: var(--space-10) 0;
}

.pagination .nav-links {
    display: flex;
    gap: var(--space-2);
}

.pagination .page-numbers {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px var(--glow-1);
}

/* ================================================
   HIGHLIGHT BOXES
   ================================================ */
.highlight-box {
    padding: var(--space-5);
    border-radius: var(--radius);
    margin: var(--space-5) 0;
}

.highlight-box.tip {
    background: rgba(5, 150, 105, 0.1);
    border-left: 4px solid var(--accent-1);
}

.highlight-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--accent-orange);
}

.highlight-box.info {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
}

.highlight-box-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-2);
}

.highlight-box.tip .highlight-box-title {
    color: var(--accent-1);
}

.highlight-box.warning .highlight-box-title {
    color: var(--accent-orange);
}

.highlight-box p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}
