/* CSS Reset & Base Styles */
:root {
    --primary-dark: #1a3a8f;
    --primary-light: #4a6edd;
    --light-gray: #f8f9fa;
    --pure-white: #ffffff;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --border-light: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 25%, #6366f1 50%, #8b5cf6 75%, #3730a3 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Header */
header {
    background: var(--pure-white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.nav-brand i {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: var(--gradient);
    color: white;
    padding: 4rem 0;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero h1 i {
    font-size: 2.5rem;
    opacity: 0.9;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Project Hero */
.project-hero {
    background: var(--gradient);
    color: white;
    padding: 3rem 0;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.project-title {
    display: flex;
    gap: 1.5rem;
    flex: 1;
}

.project-icon-large {
    font-size: 4rem;
    opacity: 0.9;
    min-width: 80px;
}

.project-title-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-title-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.project-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    backdrop-filter: blur(10px);
}

.project-actions-main {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background: var(--text-gray);
    color: white;
    border-color: var(--text-gray);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--text-gray);
    border-color: var(--text-gray);
}

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Project Cards */
.projects {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--pure-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.project-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.project-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-meta {
    margin-bottom: 1.5rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.keyword {
    background: var(--light-gray);
    color: var(--text-gray);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

.project-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-actions .btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

/* Project Details */
.project-details {
    padding: 3rem 0;
    background: var(--pure-white);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.main-content {
    display: block;
}

.main-content > div {
    margin-bottom: 2rem;
}

.project-showcase {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.project-showcase h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.showcase-frame {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.showcase-actions {
    text-align: center;
}

.project-keywords h3,
.classifiers h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword-tag {
    background: var(--primary-dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 500;
}

.classifier-list {
    list-style: none;
}

.classifier-list li {
    background: var(--light-gray);
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Sidebar */
.sidebar > div {
    margin-bottom: 2rem;
}

.info-card,
.requirements-card,
.links-card {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 12px;
}

.info-card h3,
.requirements-card h3,
.links-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

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

.info-item .label {
    font-weight: 600;
    color: var(--text-gray);
}

.info-item .value {
    text-align: right;
    color: var(--text-dark);
}

.info-item .value a {
    color: var(--primary-light);
    text-decoration: none;
}

.info-item .value a:hover {
    text-decoration: underline;
}

.requirements-section {
    margin-bottom: 1rem;
}

.requirements-section:last-child {
    margin-bottom: 0;
}

.requirements-section h4 {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.requirements-section ul {
    list-style: none;
}

.requirements-section li {
    background: var(--pure-white);
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-gray);
    font-family: 'Monaco', 'Menlo', monospace;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--pure-white);
    margin-bottom: 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.link-item:hover {
    background: var(--primary-light);
    color: white;
    transform: translateX(5px);
}

.link-item:last-child {
    margin-bottom: 0;
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: var(--light-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--pure-white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Back Section */
.back-section {
    padding: 2rem 0;
    text-align: center;
    background: var(--light-gray);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--light-gray);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .project-header {
        flex-direction: column;
    }
    
    .project-title {
        text-align: center;
    }
    
    .project-title-text h1 {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .project-title {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .project-actions-main {
        flex-direction: column;
        align-items: stretch;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .project-badges {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading & Transition Effects */
.project-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Development Projects Styles */
.project-card.development {
    border: 2px dashed var(--warning);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.1) 100%);
    position: relative;
    overflow: visible;
}

.project-card.development::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--warning), transparent, var(--warning));
    border-radius: 12px;
    z-index: -1;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.project-status {
    position: absolute;
    top: -8px;
    right: 15px;
    z-index: 10;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.development {
    background: var(--warning);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.project-card.development .keyword.dev {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.project-card.development .btn-warning {
    background: var(--warning);
    color: white;
    border: none;
}

.project-card.development .btn-warning:hover {
    background: #d97706;
    transform: translateY(-2px);
}

/* Hero Actions */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Pulse animation for development projects */
@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--text-gray);
    border-radius: 4px;
}

/* Yeni Özellikler için Stiller */

/* Kaynak kodu durumu bilgisi */
.source-info {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    font-size: 0.9rem;
}

.source-info.private-notice {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* Meta row düzeni */
.meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.meta-row:last-child {
    margin-bottom: 0;
}

/* Açık kaynak ve gizli durum renkleri */
.meta-item.open-source {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.meta-item.private-source {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* İstatistik satırı */
.stats-row .meta-item {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-dark);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Kütüphane istatistikleri */
.library-stats {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--primary-light);
}

.library-stats .text-muted {
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* Geliştirme projeler bölümü */
.dev-projects {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

.dev-projects .section-title {
    color: var(--warning);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dev-projects .section-title::before {
    content: '🚧';
    font-size: 1.2em;
}

.dev-projects .project-card {
    border: 2px dashed rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.02);
}

.dev-projects .project-card::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--warning);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Proje türü ikonları */
.project-icon.library {
    background: linear-gradient(135deg, #8b5cf6, #3730a3);
}

.project-icon.mobile {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.project-icon.desktop {
    background: linear-gradient(135deg, #10b981, #059669);
}

.project-icon.web {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.project-icon.game {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Responsive iyileştirmeler */
@media (max-width: 768px) {
    .meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .source-info {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .library-stats {
        padding: 0.4rem;
    }
    
    .dev-projects {
        padding: 1.5rem;
        margin-top: 2rem;
    }
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}