/**
 * Hilal Yılmaz - Bileşen Stilleri
 */

/* ==================== MODALS ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 2001;
    width: 90%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-content {
    padding: 2.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition-fast);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.modal-close:hover {
    background: var(--light-gray);
    color: var(--black);
}

.modal h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.modal-footer-text a {
    color: var(--rose-dark);
    font-weight: 500;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1.5px solid var(--light-gray);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(201, 160, 160, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-error {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--black);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.toast.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--error);
}

.toast.warning {
    background: var(--warning);
}

.toast-icon {
    font-size: 1.1rem;
}

.toast-message {
    font-size: 0.95rem;
}

/* ==================== CARDS ==================== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.card-text {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.card-meta i {
    margin-right: 0.25rem;
}

/* Book Card */
.book-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.book-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.book-card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: var(--light-gray);
}

.book-card-content {
    padding: 1.25rem;
}

.book-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--black);
}

.book-card-author {
    font-size: 0.9rem;
    color: var(--rose-dark);
    margin-bottom: 0.75rem;
}

.book-card-quote {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--gray);
    line-height: 1.5;
}

/* Blog Card */
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--light-gray);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--rose-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--black);
    line-height: 1.4;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.blog-card-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.blog-card-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Video Card */
.video-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 3px solid #ff0000;
}

.video-card:hover {
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
    transform: translateY(-4px);
    border-color: #cc0000;
}

.video-card-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--light-gray);
}

.video-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.video-card:hover .video-card-overlay {
    opacity: 1;
}

.video-play-btn {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--rose-dark);
    transition: var(--transition);
}

.video-card:hover .video-play-btn {
    transform: scale(1.1);
    background: var(--rose);
    color: var(--white);
}

.video-card-content {
    padding: 1rem;
    background: var(--white);
}

.video-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.video-card-description {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--rose-light);
    border-left: 3px solid var(--rose);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

/* ==================== FEATURED BOOK ==================== */
.featured-book {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.featured-book-image {
    position: relative;
}

.featured-book-image img {
    width: 100%;
    max-width: 350px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.featured-book-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.featured-book-author {
    font-size: 1.1rem;
    color: var(--rose-dark);
    margin-bottom: 1.5rem;
}

.featured-book-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--dark-gray);
    border-left: 3px solid var(--rose);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.featured-book-actions {
    display: flex;
    gap: 1rem;
}

/* ==================== BOOK PREVIEW MODAL ==================== */
.book-preview-modal {
    max-width: 900px;
}

.book-preview-modal .modal-content {
    padding: 0;
}

.book-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.book-preview-header h3 {
    font-size: 1.25rem;
}

.book-preview-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background: var(--light-gray);
    position: relative;
}

.book-preview-image {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.book-preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border: none;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--dark-gray);
    transition: var(--transition);
}

.book-preview-nav:hover {
    background: var(--rose);
    color: var(--white);
}

.book-preview-nav.prev {
    left: 1rem;
}

.book-preview-nav.next {
    right: 1rem;
}

.book-preview-footer {
    padding: 1rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--light-gray);
}

.book-preview-counter {
    font-size: 0.9rem;
    color: var(--gray);
}

/* ==================== YOUTUBE CHANNEL ==================== */
.youtube-channel {
    background: var(--black);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 3rem;
}

.youtube-banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.youtube-channel-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
}

.youtube-channel-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    border: 3px solid var(--white);
    margin-top: -50px;
}

.youtube-channel-text h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.youtube-channel-text p {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 0;
}

.youtube-subscribe-btn {
    margin-left: auto;
    background: #ff0000;
    color: var(--white);
}

.youtube-subscribe-btn:hover {
    background: #cc0000;
    color: var(--white);
}

/* ==================== PROFILE PAGE ==================== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--off-white);
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
}

.profile-avatar-wrapper {
    position: relative;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
}

.profile-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: var(--rose);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
}

.profile-avatar-edit:hover {
    background: var(--rose-dark);
}

.profile-info h2 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.profile-info p {
    color: var(--gray);
    margin: 0;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 2rem;
}

.profile-tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.profile-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--rose);
    transform: scaleX(0);
    transition: var(--transition);
}

.profile-tab:hover {
    color: var(--black);
}

.profile-tab.active {
    color: var(--black);
}

.profile-tab.active::after {
    transform: scaleX(1);
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
}

/* ==================== COMMENTS ==================== */
.comment {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--off-white);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--black);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--gray);
}

.comment-text {
    font-size: 0.95rem;
    color: var(--dark-gray);
    line-height: 1.6;
    margin: 0;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.comment-action {
    background: none;
    border: none;
    font-size: 0.85rem;
    color: var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition-fast);
}

.comment-action:hover {
    color: var(--rose-dark);
}

/* Comment Form */
.comment-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.comment-form textarea {
    flex: 1;
    padding: 1rem;
    border: 1.5px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    resize: none;
    min-height: 80px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--rose);
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition-fast);
}

.pagination-btn:hover {
    border-color: var(--rose);
    color: var(--rose);
}

.pagination-btn.active {
    background: var(--rose);
    border-color: var(--rose);
    color: var(--white);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* ==================== VIDEO PLAYER MODAL ==================== */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 1100px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.video-modal-overlay.active .video-modal-content {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.video-modal-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    background: #000;
}

.video-modal-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .video-modal-overlay {
        padding: 15px;
    }
    
    .video-modal-close {
        top: -45px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .video-modal-overlay {
        padding: 10px;
        padding-top: 60px;
    }
    
    .video-modal-close {
        top: -50px;
        right: 5px;
    }
    
    .video-modal-content {
        border-radius: 8px;
    }
}


/* ==================== AVATAR INITIALS ==================== */
.avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-avatar.avatar-initials {
    width: 48px;
    height: 48px;
    font-size: 0.95rem;
}

.user-avatar.avatar-initials {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
}

.profile-avatar.avatar-initials {
    width: 120px;
    height: 120px;
    font-size: 2.5rem;
}


/* ==================== SUBSTACK BUTTON ==================== */
.btn-substack {
    background: #ff6719;
    color: #fff;
    border: none;
}

.btn-substack:hover {
    background: #e55a14;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 103, 25, 0.4);
}
