/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: none;
}

.header-main {
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    margin-left: 10px;
}

.logo-resto {
    color: #34a853;
}

.logo-bilgi {
    color: #1a73e8;
}

.logo-subtitle {
    color: #1a73e8;
    font-size: 14px;
    margin-left: 10px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #1a73e8;
    color: white;
}

.btn-primary:hover {
    background: #1557b0;
}

.btn-outline {
    background: white;
    color: #1a73e8;
    border: 1px solid #1a73e8;
}

.btn-outline:hover {
    background: #1a73e8;
    color: white;
}

/* Main Content */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-bottom: 40px;
}

/* Companies Grid */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.company-card-grid {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.company-card-grid:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.company-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.company-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.company-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border: 2px dashed #ddd;
}

.company-image-placeholder i {
    font-size: 48px;
}

.company-card-grid:hover .company-image img {
    transform: scale(1.05);
}

.company-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a73e8, #34a853);
    color: white;
    font-size: 48px;
}

.company-content {
    padding: 20px;
}

.company-title {
    font-size: 18px;
    font-weight: bold;
    color: #1a73e8;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    line-height: 1.3;
}

.company-title:hover {
    text-decoration: underline;
}

.company-description {
    color: #5f6368;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.company-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.company-location,
.company-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #5f6368;
}

.company-location i,
.company-time i {
    color: #1a73e8;
    width: 14px;
}

.main-column {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sidebar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #1a73e8;
    margin-bottom: 10px;
    text-decoration: none;
    display: block;
}

.card-title:hover {
    text-decoration: underline;
}

.card-description {
    color: #5f6368;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #5f6368;
    margin-bottom: 10px;
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-company {
    color: #202124;
    font-weight: 500;
    margin-bottom: 5px;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #5f6368;
    font-size: 13px;
}

.card-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #5f6368;
    font-size: 13px;
}

/* Company Card Styles */
.company-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.company-card:hover {
    background-color: #f8f9fa;
}

.company-card:last-child {
    border-bottom: none;
}

.company-card-title {
    font-weight: bold;
    color: #1a73e8;
    margin-bottom: 5px;
    font-size: 16px;
}

.company-card-info {
    color: #5f6368;
    font-size: 13px;
}

/* Sidebar Styles */
.sidebar-title {
    font-size: 21px;
    font-weight: 700;
    color: #202124;
    margin-bottom: 5px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 15px;
}

.sidebar-list a {
    text-decoration: none;
    color: #1a73e8;
    font-weight: 600;
    font-size: 18px;
    display: block;
    padding: 3px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-list a:hover {
    color: #1557b0;
}

.sidebar-list a:hover .company-card-title {
    text-decoration: underline;
}

.sidebar-address {
    color: #5f6368;
    font-size: 14px;
    margin-top: 4px;
    line-height: 1.2;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    display: block !important;
    word-break: keep-all;
}

/* Blog Section Styles */
.blog-section {
    margin-top: 60px;
    padding: 40px 0;
    background: transparent;
    width: 100%;
}

.blog-section-title {
    font-size: 28px;
    color: #1a73e8;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.blog-posts-container {
    overflow-x: auto;
    padding: 20px 0;
}

.blog-posts-scroll {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    min-width: max-content;
}

.blog-post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 320px;
    min-width: 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.blog-post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-image.placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.blog-post-content {
    padding: 20px;
}

.blog-post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #6c757d;
}

.blog-author,
.blog-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-post-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.blog-post-title a {
    color: #202124;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: #1a73e8;
}

.blog-post-excerpt {
    color: #5f6368;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    color: #1557b0;
    transform: translateX(5px);
}

/* Mobile Responsive for Blog Section */
@media (max-width: 768px) {
    .blog-section {
        margin-top: 40px;
        padding: 30px 20px;
    }
    
    .blog-section-title {
        font-size: 24px;
    }
    
    .blog-post-card {
        width: 280px;
        min-width: 280px;
    }
    
    .blog-posts-scroll {
        gap: 15px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .blog-post-card {
        width: 260px;
        min-width: 260px;
    }
    
    .blog-posts-scroll {
        gap: 10px;
        padding: 10px 15px;
    }
}

/* Blog Post Styles */
.blog-post {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-post-title {
    font-size: 24px;
    font-weight: bold;
    color: #1a73e8;
    margin-bottom: 15px;
    text-decoration: none;
}

.blog-post-title:hover {
    text-decoration: underline;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #5f6368;
}

.blog-post-excerpt {
    color: #5f6368;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-post-read-more {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.blog-post-read-more:hover {
    text-decoration: underline;
}

/* Company Detail Styles */
.company-detail {
    margin-bottom: 30px;
}

.company-detail h1 {
    font-size: 28px;
    color: #1a73e8;
    margin-bottom: 5px;
}

.company-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.company-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.company-info-item:last-child {
    margin-bottom: 0;
}

.company-info-label {
    font-weight: bold;
    color: #202124;
    min-width: 100px;
}

.company-info-value {
    color: #5f6368;
}

.company-map {
    margin-top: 20px;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    position: relative;
}

.map-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    position: absolute;
    top: 0;
    left: 0;
}

.company-map #map {
    width: 100% !important;
    height: 400px !important;
    border-radius: 8px;
}

/* Footer Styles */
.footer {
    background: #f8f9fa;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: #202124;
    margin-bottom: 10px;
}

.footer-copyright {
    color: #5f6368;
    font-size: 14px;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: bold;
    color: #202124;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #5f6368;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #1a73e8;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #5f6368;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.scroll-top:hover {
    background: #1557b0;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .companies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .company-card-grid {
        margin-bottom: 0;
    }
    
    .company-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .companies-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .company-content {
        padding: 15px;
    }
    
    .company-title {
        font-size: 16px;
    }
    
    .company-description {
        font-size: 13px;
    }
}

/* Admin Panel Styles */
.admin-header {
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
}

.admin-nav {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
}

.admin-nav .btn-nav {
    background: #1a73e8;
    border: 1px solid #1a73e8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-nav .btn-nav:hover,
.admin-nav .btn-nav.active {
    background: #1557b0;
    border-color: #1557b0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.admin-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #202124;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.btn-success {
    background: #34a853;
    color: white;
}

.btn-success:hover {
    background: #2d8f47;
}

.btn-danger {
    background: #ea4335;
    color: white;
}

.btn-danger:hover {
    background: #d33b2c;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.hidden {
    display: none;
}

/* Icons */
.icon {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.icon-pin::before {
    content: "📍";
}

.icon-clock::before {
    content: "🕒";
}

.icon-phone::before {
    content: "📞";
}

.icon-email::before {
    content: "✉️";
}

.icon-globe::before {
    content: "🌐";
}


.company-info-value {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Company location info styling */
.company-location-info {
    margin-top: 1px !important;
    margin-bottom: 20px;
}

/* Header Search Bar Styles */
.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
}

.search-form {
    width: 100%;
}

.search-input-group {
    display: flex;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
}

.search-icon {
    color: #9aa0a6;
    font-size: 16px;
    margin-right: 12px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 0;
    font-size: 16px;
    color: #202124;
}

.search-input::placeholder {
    color: #9aa0a6;
}

.search-btn {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background: #1557b0;
}

/* Header Actions Styles */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.employer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: transparent;
    color: #1a73e8;
    text-decoration: none;
    border-radius: 0;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s;
    border: none;
}

.employer-link:hover {
    background: #e0edff;
    color: #1a73e8;
    text-decoration: none;
    border-radius: 6px;
}

.employer-link i {
    font-size: 18px;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: transparent;
    color: #525c6b;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s;
    border-radius: 0;
    border: none;
}

.login-btn:hover {
    background: #f5f5f5;
    color: #525c6b;
    text-decoration: none;
    border-radius: 6px;
}

.login-btn i {
    font-size: 18px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .search-container {
        margin: 0;
        max-width: none;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .employer-link,
    .login-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .employer-link span,
    .login-btn span {
        display: none;
    }
    
    .employer-link i,
    .login-btn i {
        font-size: 18px;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 20px;
    background: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn:hover {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.3);
}

.pagination-numbers {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pagination-number {
    padding: 8px 14px;
    background: white;
    color: #5f6368;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    min-width: 40px;
    text-align: center;
}

.pagination-number:hover {
    background: #f8f9fa;
    border-color: #1a73e8;
    color: #1a73e8;
}

.pagination-number.active {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.pagination-dots {
    color: #5f6368;
    padding: 0 8px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .pagination {
        gap: 6px;
        margin: 30px 0;
    }
    
    .pagination-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .pagination-number {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 36px;
    }
    
    .pagination-btn span {
        display: none;
    }
}

/* Blog page styles - Orijinal tasarım */

/* Blog section on company page */
.blog-section .blog-posts-grid .blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.blog-section .blog-posts-grid .blog-post-card h4 a:hover {
    color: #1a73e8;
}

@media (max-width: 768px) {
    .blog-section .blog-posts-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .blog-section h3 {
        font-size: 20px !important;
    }
    
    .blog-section .blog-posts-grid {
        gap: 15px !important;
    }
}
