/* ========================================
   TECRÜBE EKLENTİSİ - MUHTEŞEM TASARIM
   Koyu Kırmızı & Beyaz Tema
======================================== */

:root {
    --primary-red: #8B0000;
    --dark-red: #5C0000;
    --bright-red: #DC143C;
    --light-red: #FF6B6B;
    --pure-white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #E9ECEF;
    --medium-gray: #ADB5BD;
    --dark-gray: #495057;
    --text-primary: #212529;
    --text-secondary: #6C757D;
    --shadow-red: rgba(139, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.1);
    --gradient-red: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    --gradient-red-hover: linear-gradient(135deg, #DC143C 0%, #FF6B6B 100%);
}

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

.tecrube-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: visible;
}

.tecrube-container > * {
    position: relative;
}

/* ==================== HEADER ==================== */
.tecrube-header {
    background: var(--gradient-red);
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px var(--shadow-red);
    position: relative;
    overflow: hidden;
    z-index: 100;
}

.tecrube-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.tecrube-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.tecrube-logo {
    position: relative;
    z-index: 1;
}

.tecrube-logo h1 {
    font-size: 42px;
    font-weight: 900;
    color: var(--pure-white);
    margin: 0;
    letter-spacing: -1px;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
}

.tecrube-logo h1::before {
    content: '✨';
    font-size: 36px;
    animation: sparkle 2s ease-in-out infinite;
}

.tecrube-logo a {
    text-decoration: none;
    color: inherit;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(10deg); opacity: 0.8; }
}

.tecrube-auth-buttons {
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 1;
}

/* ==================== BUTTONS ==================== */
.tecrube-btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tecrube-btn-primary {
    background: var(--pure-white);
    color: var(--primary-red);
    font-weight: 800;
}

.tecrube-btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.tecrube-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--pure-white);
    border: 2px solid var(--pure-white);
    backdrop-filter: blur(10px);
}

.tecrube-btn-secondary:hover {
    background: var(--pure-white);
    color: var(--primary-red);
    transform: translateY(-3px) scale(1.05);
}

.tecrube-btn-outline {
    background: transparent;
    color: var(--pure-white);
    border: 2px solid var(--pure-white);
}

.tecrube-btn-outline:hover {
    background: var(--pure-white);
    color: var(--primary-red);
    transform: translateY(-3px);
}

/* ==================== SEARCH BAR ==================== */
.tecrube-search-bar {
    padding: 40px 50px 30px;
    background: var(--pure-white);
    position: relative;
    z-index: 1;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: var(--off-white);
    border-radius: 60px;
    box-shadow: 0 10px 40px var(--shadow-dark);
    border: 3px solid transparent;
    transition: all 0.3s ease;
    display: block;
    overflow: hidden;
}

.search-input-wrapper:focus-within {
    border-color: var(--bright-red);
    box-shadow: 0 10px 50px var(--shadow-red);
    transform: translateY(-2px);
}

.search-input-wrapper form {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

.search-icon {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-red);
    width: 24px;
    height: 24px;
    z-index: 2;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 22px 30px 22px 70px;
    border: none;
    border-radius: 60px;
    font-size: 17px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 500;
    display: block;
    box-sizing: border-box;
}

.search-input::placeholder {
    color: var(--medium-gray);
}

.search-input:focus {
    outline: none;
}

/* ==================== CATEGORIES ==================== */
.tecrube-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 50px 40px;
    background: var(--pure-white);
    position: relative;
    z-index: 1;
}

.category-tag {
    padding: 12px 28px;
    border-radius: 50px;
    background: var(--off-white);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: inline-block;
    z-index: 1;
}

.category-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-red);
    transition: left 0.3s ease;
    z-index: -1;
}

.category-tag:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px var(--shadow-red);
    color: var(--pure-white);
}

.category-tag:hover::before {
    left: 0;
}

.category-tag.active {
    background: var(--gradient-red);
    color: var(--pure-white);
    border-color: var(--dark-red);
    box-shadow: 0 8px 20px var(--shadow-red);
    transform: translateY(-2px);
}

/* ==================== GRID ==================== */
.tecrube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    padding: 30px 50px 60px;
    background: transparent;
    position: relative;
    clear: both;
}

/* ==================== CARD ==================== */
.tecrube-card {
    background: var(--pure-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-dark);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--light-gray);
    position: relative;
}

.tecrube-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-red);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.tecrube-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow-red);
}

.tecrube-card:hover::before {
    transform: scaleX(1);
}

.tecrube-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 25px 25px 20px;
    background: linear-gradient(to bottom, var(--off-white), var(--pure-white));
}

.tecrube-author {
    display: flex;
    gap: 15px;
    align-items: center;
}

.author-avatar {
    position: relative;
}

.author-avatar img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: 3px solid var(--bright-red);
    box-shadow: 0 4px 10px var(--shadow-red);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 15px;
}

.tecrube-date {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.tecrube-category-badge {
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--gradient-red);
    color: var(--pure-white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px var(--shadow-red);
}

.tecrube-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    padding: 0 25px 15px;
    color: var(--text-primary);
    line-height: 1.4;
}

.tecrube-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    background: linear-gradient(to right, var(--bright-red), var(--bright-red)) no-repeat;
    background-size: 0% 2px;
    background-position: left bottom;
    transition: background-size 0.3s ease, color 0.3s ease;
}

.tecrube-title a:hover {
    color: var(--bright-red);
    background-size: 100% 2px;
}

.tecrube-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    padding: 0 25px 20px;
    margin: 0;
}

.tecrube-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--off-white);
    border-top: 2px solid var(--light-gray);
}

.tecrube-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.stat-item svg {
    color: var(--primary-red);
    width: 18px;
    height: 18px;
}

.tecrube-read-more {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--pure-white);
    background: var(--gradient-red);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-red);
}

.tecrube-read-more:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px var(--shadow-red);
    background: var(--gradient-red-hover);
}

.tecrube-read-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.tecrube-read-more:hover svg {
    transform: translateX(3px);
}

/* ==================== SINGLE ARTICLE ==================== */
.tecrube-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tecrube-article {
    background: var(--pure-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow-dark);
    margin-bottom: 40px;
}

.tecrube-article-header {
    padding: 50px 50px 40px;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--pure-white) 100%);
    border-bottom: 3px solid var(--bright-red);
    position: relative;
}

.tecrube-article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-red);
}

.tecrube-article-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--text-primary);
    margin: 20px 0 25px;
    line-height: 1.3;
}

.tecrube-article-meta {
    margin-top: 25px;
}

.author-info-detailed {
    display: flex;
    gap: 20px;
    align-items: center;
}

.author-info-detailed img {
    border-radius: 50%;
    border: 4px solid var(--bright-red);
    box-shadow: 0 5px 15px var(--shadow-red);
}

.tecrube-article-content {
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-primary);
    padding: 50px;
}

.tecrube-article-content p {
    margin-bottom: 20px;
}

/* ==================== SHARE BUTTONS ==================== */
.tecrube-share {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 30px 50px;
    background: var(--off-white);
}

.tecrube-share span {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px var(--shadow-dark);
}

.share-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px var(--shadow-dark);
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

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

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.copy {
    background: var(--primary-red);
    color: var(--pure-white);
}

/* ==================== COMMENTS ==================== */
.tecrube-comments-section {
    background: var(--pure-white);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px var(--shadow-dark);
}

.comments-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 35px;
    color: var(--text-primary);
    padding-bottom: 20px;
    border-bottom: 3px solid var(--bright-red);
}

.comment-form-wrapper {
    margin-bottom: 40px;
}

.tecrube-comment-form {
    background: var(--off-white);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid var(--light-gray);
}

.comment-form-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-form-header img {
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid var(--bright-red);
}

.comment-form-header textarea {
    flex: 1;
    min-height: 100px;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.comment-form-header textarea:focus {
    outline: none;
    border-color: var(--bright-red);
    box-shadow: 0 0 0 3px var(--shadow-red);
}

.comment-form-footer {
    display: flex;
    justify-content: flex-end;
}

.login-prompt {
    text-align: center;
    padding: 60px 40px;
    background: var(--off-white);
    border-radius: 15px;
    border: 2px dashed var(--bright-red);
}

.login-prompt p {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 10px 0;
}

.login-prompt a {
    color: var(--bright-red);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--bright-red);
}

.tecrube-comments-list {
    margin-top: 40px;
}

.tecrube-comment {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 2px solid var(--light-gray);
}

.tecrube-comment:last-child {
    border-bottom: none;
}

.comment-avatar img {
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid var(--light-red);
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 12px;
}

.comment-author {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
}

.comment-date {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.comment-text {
    color: var(--text-primary);
    line-height: 1.7;
    margin: 0;
    font-size: 15px;
}

.no-comments {
    text-align: center;
    padding: 60px 40px;
    color: var(--text-secondary);
}

/* ==================== NO RESULTS ==================== */
.no-results {
    text-align: center;
    padding: 100px 40px;
    color: var(--text-secondary);
}

.no-results svg {
    margin-bottom: 30px;
    color: var(--primary-red);
    width: 80px;
    height: 80px;
}

.no-results p {
    font-size: 18px;
    margin: 15px 0;
}

.no-results a {
    color: var(--bright-red);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--bright-red);
}

/* ==================== MODAL ==================== */
.tecrube-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.tecrube-modal-content {
    position: relative;
    background-color: var(--pure-white);
    margin: 3% auto;
    padding: 50px;
    border-radius: 20px;
    max-width: 700px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tecrube-modal-content h2 {
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--bright-red);
}

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

@keyframes slideIn {
    from { transform: translateY(-100px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.tecrube-modal-close {
    position: absolute;
    right: 25px;
    top: 25px;
    font-size: 32px;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--off-white);
}

.tecrube-modal-close:hover {
    color: var(--pure-white);
    background: var(--bright-red);
    transform: rotate(90deg);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--off-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--bright-red);
    box-shadow: 0 0 0 3px var(--shadow-red);
    background: var(--pure-white);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .tecrube-header {
        flex-direction: column;
        gap: 25px;
        align-items: center;
        padding: 25px 20px;
    }
    
    .tecrube-logo h1 {
        font-size: 32px;
    }
    
    .tecrube-auth-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .tecrube-search-bar,
    .tecrube-categories {
        padding: 20px;
    }
    
    .tecrube-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .tecrube-article {
        border-radius: 15px;
    }
    
    .tecrube-article-header {
        padding: 30px 25px 25px;
    }
    
    .tecrube-article-title {
        font-size: 28px;
    }
    
    .tecrube-article-content {
        padding: 30px 25px;
    }
    
    .tecrube-comments-section {
        padding: 30px 20px;
    }
    
    .tecrube-modal-content {
        margin: 10% 20px;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .tecrube-btn {
        padding: 12px 24px;
        font-size: 13px;
    }
    
    .category-tag {
        padding: 10px 20px;
        font-size: 13px;
    }
}
