/* BilişimDünyası - Medium Sayfası Özel Stilleri */

/* Medium Başlık Stili */
.medium-title {
    background: linear-gradient(135deg, #00ab6c 0%, #067d50 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 171, 108, 0.15);
    letter-spacing: -1px;
    animation: fadeInUp 1s ease-out;
}

/* Medium Sayfa Başlığı Arka Planı */
.page-header {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8)), 
                url('../img/pattern-bg.png');
    background-size: cover;
    position: relative;
    overflow: hidden;
}

/* Medium Resim Konteyneri ve Animasyonlar */
.medium-image-container {
    position: relative;
    z-index: 1;
    perspective: 1000px;
    margin-top: 20px;
}

.medium-image {
    transform: rotateY(-5deg) rotateX(5deg);
    transition: all 0.5s ease;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border: 8px solid white;
    animation: float 6s ease-in-out infinite;
}

.medium-image-container:hover .medium-image {
    transform: rotateY(0deg) rotateX(0deg);
}

.medium-shape-1, .medium-shape-2 {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
    z-index: -1;
}

.medium-shape-1 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #00ab6c 0%, #067d50 100%);
    top: -30px;
    right: 10%;
    animation: float 7s ease-in-out infinite;
}

.medium-shape-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1da1f2 0%, #0d8ecf 100%);
    bottom: 10%;
    left: 5%;
    animation: float 5s ease-in-out infinite 1s;
}

/* Medium Profil Kartı */
.medium-profile-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.medium-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Medium Arama Grubu */
.medium-search-group {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.medium-search-group .form-control {
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
}

.medium-search-group .form-control:focus {
    box-shadow: none;
}

.btn-gradient {
    background: linear-gradient(135deg, #00ab6c 0%, #067d50 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #067d50 0%, #00ab6c 100%);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 171, 108, 0.3);
}

/* Medium Yazılar Bölümü */
.medium-posts-section {
    background-color: #f8f9fa;
    position: relative;
}

.section-title {
    position: relative;
    margin-bottom: 30px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.medium-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00ab6c 0%, #067d50 100%);
    color: white;
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: 0 5px 15px rgba(0, 171, 108, 0.3);
}

/* Medium Yazı Kartları (JavaScript ile oluşturulan kartlar için) */
.medium-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.medium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.medium-card img {
    transition: all 0.5s ease;
    height: 200px;
    object-fit: cover;
}

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

.medium-card .card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.medium-card .card-title {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: #333;
}

.medium-card .card-text {
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.medium-card .card-footer {
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.medium-card .read-more {
    color: #00ab6c;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.medium-card .read-more:hover {
    color: #067d50;
}

.medium-card .read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.medium-card .read-more:hover i {
    transform: translateX(5px);
}

.medium-card .post-date {
    color: #999;
    font-size: 0.875rem;
}

/* Medium Sayfalama */
.medium-pagination {
    margin-top: 30px;
}

.medium-pagination .page-link {
    border: none;
    color: #333;
    margin: 0 5px;
    border-radius: 5px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.medium-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #00ab6c 0%, #067d50 100%);
    color: white;
    box-shadow: 0 5px 10px rgba(0, 171, 108, 0.2);
}

.medium-pagination .page-link:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.medium-pagination .page-item.active .page-link:hover {
    background: linear-gradient(135deg, #00ab6c 0%, #067d50 100%);
}

/* Bülten Bölümü */
.newsletter-section {
    background: linear-gradient(135deg, #00ab6c 0%, #067d50 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/pattern-bg.png');
    background-size: cover;
    opacity: 0.1;
}

/* Topic Categories */
.topic-category {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 5px 5px 0;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.topic-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.topic-category-1 {
    background: linear-gradient(135deg, #00ab6c 0%, #067d50 100%);
}

.topic-category-2 {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8ecf 100%);
}

.topic-category-3 {
    background: linear-gradient(135deg, #6c5ce7 0%, #4834d4 100%);
}

.topic-category-4 {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
}

.topic-category-5 {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
}

.topic-category-6 {
    background: linear-gradient(135deg, #0984e3 0%, #0652DD 100%);
}

.topic-category-7 {
    background: linear-gradient(135deg, #6c5ce7 0%, #574b90 100%);
}

.topic-category-8 {
    background: linear-gradient(135deg, #00cec9 0%, #00b894 100%);
}

.topic-category-9 {
    background: linear-gradient(135deg, #ff7675 0%, #d63031 100%);
}

.topic-category-10 {
    background: linear-gradient(135deg, #e83e8c 0%, #b02a37 100%);
}

/* Stat Cards */
.stat-card {
    background-color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767.98px) {
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Animasyonlar */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.btn-gradient:hover i {
    animation: pulse 1s infinite;
}

/* Duyarlı Tasarım */
@media (max-width: 991.98px) {
    .medium-image-container {
        margin-top: 40px;
    }
    
    .medium-shape-1 {
        width: 80px;
        height: 80px;
    }
    
    .medium-shape-2 {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 767.98px) {
    .medium-search-group {
        margin-top: 30px;
    }
    
    .medium-card img {
        height: 180px;
    }
}
