/**
 * Event and Event Guide Styles
 */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   Single Event Page
   ========================================================================== */

.event-single {
    max-width: 100%;
}

/* Disable drop cap */
.event-single #entry-content:first-letter {
    font-size: inherit;
    line-height: inherit;
    float: none;
    margin: 0;
}

.event-single .event-title {
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}

.event-single .event-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.event-single .event-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #888;
}

.event-single .event-meta-item svg {
    color: #E08C02;
}

.event-single .event-detail-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.event-single .event-cover {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin: 0 auto 20px;
    border-radius: 8px;
}

.event-cover img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.event-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.event-date {
    font-family: "Sue Ellen Francisco Turk", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 36px;
    margin-bottom: 20px;
}

.event-title {
    font-family: "museo", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: #333;
    margin: 0 0 15px;
    line-height: 1.3;
}

.event-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: #666;
}

.event-location svg {
    color: #E08C02;
}

.event-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.event-detailed-info {
    border-top: 1px solid #f0f0f0;
}

.event-detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.event-share-section {
    max-width: 900px;
    margin: 50px auto 0;
    text-align: center;
}

/* Back to Guide Button */
.event-back-to-guide {
    text-align: center;
    margin: 20px 0 30px;
}

.event-single #entry-content .event-back-to-guide a.event-back-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: #666 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    background: transparent;
    opacity: 1 !important;
}

.event-single #entry-content .event-back-to-guide a.event-back-btn:hover {
    border-color: #E08C02;
    color: #E08C02 !important;
    background: transparent;
}

.event-single #entry-content .event-back-to-guide a.event-back-btn:hover svg {
    stroke: #E08C02;
}

.event-single #entry-content .event-back-to-guide a.event-back-btn svg {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    transition: stroke 0.2s ease;
}

/* Event Card Image Wrapper with Anchor Button */
.event-card-image-wrapper {
    position: relative;
}

.event-anchor-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    padding: 0;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.event-card-image-wrapper:hover .event-anchor-btn {
    opacity: 1;
}

.event-anchor-btn:hover {
    background: #E08C02;
}

.event-anchor-btn svg {
    stroke: #666;
    transition: stroke 0.2s ease;
}

.event-anchor-btn:hover svg {
    stroke: #fff;
}

/* Anchor Copy Toast */
.anchor-copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

.anchor-copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.event-detail-footer .event-link-text {
    max-width: 160px;
    padding: 0;
    overflow: hidden;
    display: inline-block;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

/* Keep external link visible on mobile for detail page */
#entry-content a.event-detail-external-link {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
}

.event-link-container {
    text-align: center;
    margin: 30px 0 10px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

#entry-content a.event-link-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #E08C02;
    color: #fff;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

#entry-content a.event-link-button:hover {
    background: #c77a02;
    color: #fff;
    transform: translateY(-2px);
}

#entry-content a.event-link-button svg {
    stroke: #fff;
}

/* ==========================================================================
   Event Guide Page
   ========================================================================== */

.event-guide-single {
    max-width: 100%;
}

.guide-intro {
    max-width: 800px;
    margin: 0 auto 60px;
}

.guide-intro p:first-child {
    margin-top: 0;
}

.event-list {
    max-width: 900px;
    margin: 0 auto;
}

/* Date Group */
.date-group {
    margin-bottom: 60px;
}

.date-title {
    font-family: "Sue Ellen Francisco Turk", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 36px;
    line-height: 2;
    font-weight: 100;
    margin: 0px 0px 30px;
    overflow: hidden;
    text-align: center;
    color: #333;
}

.date-title:before,
.date-title:after {
    border-top: 1px solid #ECECEC;
    content: "";
    display: inline-block;
    height: .1em;
    position: relative;
    vertical-align: middle;
    width: 50%;
    margin-bottom: .15em;
}

.date-title:before {
    right: 0.5em;
    margin-left: -50%;
}

.date-title:after {
    left: 0.5em;
    margin-right: -50%;
}

/* Event Cards */
.date-events {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.event-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
}

/* Event Card Ad - etkinlik kartı altındaki reklam (border dışında) */
.date-events > .liber-ad-container {
    width: 100%;
    margin: 15px 0 0 0;
    padding: 0;
}

/* Reklam yüklenemezse gizle */
.date-events > .liber-ad-container ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}

@supports selector(:has(*)) {
    .date-events > .liber-ad-container:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
        display: none !important;
        margin: 0 !important;
    }
}

/* Pinned Group (Monthly Favorite etc.) */
.date-group-pinned {
    /* Custom styles can be added */
}


/* Info Card - not clickable, info only */
.event-info-card {
    background: #fafafa;
    border-color: #f0f0f0;
}

.event-info-card .event-card-title {
    color: #333;
    cursor: default;
}

.event-info-card .event-card-excerpt {
    margin-bottom: 0;
}

#entry-content a.event-card-link {
    text-decoration: none;
    display: block;
    font-size: inherit;
    line-height: inherit;
}

.event-card-title {
    color: #333;
    margin: 14px 0;
    line-height: 1.3;
    transition: color 0.2s ease;
    text-align: center;
}

#entry-content a.event-card-link:hover .event-card-title {
    color: #E08C02;
}

#entry-content a.event-card-location {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    line-height: 1;
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

#entry-content a.event-card-location:hover {
    color: #E08C02;
}

.event-card-location svg {
    color: #E08C02;
}

#entry-content .event-card p.event-card-excerpt {
    font-size: 20px;
    line-height: 36px;
    font-weight: 250;
    color: #333333;
    margin: 20px 0;
}

.event-card-excerpt {
    margin-top: 2rem;
}

#entry-content a.event-card-image {
    display: block;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    opacity: 1 !important;
    transition: none;
    font-size: inherit;
    line-height: inherit;
}

#entry-content a.event-card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

#entry-content a.event-card-image:hover {
    opacity: 1 !important;
}

#entry-content a.event-card-image:hover img {
    transform: scale(1.02);
}

.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 5;
}

.event-card-actions-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-card-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.event-card-links .separator {
    width: 1px;
    height: 14px;
    background: #ddd;
}

#entry-content a.event-external-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    line-height: 1.4;
    color: #E08C02;
    text-decoration: none;
}

#entry-content a.event-external-link:hover {
    text-decoration: underline;
}

#entry-content a.event-external-link svg {
    stroke: #E08C02;
}

#entry-content a.event-detail-link {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

#entry-content a.event-detail-link:hover {
    color: #E08C02;
}

/* Outro */
.guide-outro {
    max-width: 800px;
    margin: 60px auto 0;
    border-top: 1px solid #eee;
}

/* ==========================================================================
   Related Venue Events
   ========================================================================== */

.related-venue-events {
    margin: 60px auto 0;
}


.related-venue-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#entry-content a.related-venue-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: inherit;
    line-height: inherit;
}

#entry-content a.related-venue-item:hover {
    border-color: #E08C02;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.related-venue-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-venue-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-venue-info {
    flex: 1;
}

.related-venue-event-title {
    font-family: "museo", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.3;
}

#entry-content a.related-venue-item:hover .related-venue-event-title {
    color: #E08C02;
}

.related-venue-date {
    font-size: 14px;
    color: #888;
}

/* Event Meta Link */
#entry-content a.event-meta-link {
    text-decoration: none;
    color: #888;
    font-size: 14px;
    line-height: 1;
    transition: color 0.2s;
}

#entry-content a.event-meta-link:hover {
    color: #E08C02;
}

/* ==========================================================================
   Venue Single Page
   ========================================================================== */

.venue-single {
    max-width: 100%;
}

.venue-no-cover .venue-header {
    text-align: center;
    max-width: 800px;
    margin: 60px auto 0px;
    padding: 0 20px;
}

.venue-title {
    font-family: "museo", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 36px;
    font-weight: 500;
    color: #333;
    margin: 0 0 15px;
    line-height: 1.3;
}

.venue-address,
.venue-address-cover {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #666;
}

.venue-address-cover {
    color: #fff;
    opacity: 0.9;
}

.venue-address svg,
.venue-address-cover svg {
    color: #E08C02;
}

.venue-description {
    max-width: 800px;
    margin: 0 auto 40px;
}

.venue-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

#entry-content a.venue-info-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

#entry-content a.venue-info-item:hover {
    border-color: #E08C02;
    color: #E08C02;
}

#entry-content a.venue-info-item svg {
    color: #E08C02;
}

.venue-map {
    max-width: 900px;
    margin: 20px auto 40px;
    border-radius: 12px;
    overflow: hidden;
}


.venue-map iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.venue-events {
}

.venue-events-title,
.related-venue-title,
.venue-map-title {
    display: flex;
    font-weight: 500;
    border-bottom: 1px solid #ececec;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.venue-events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#entry-content a.venue-event-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: inherit;
    line-height: inherit;
}

#entry-content a.venue-event-item:hover {
    border-color: #E08C02;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.venue-event-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.venue-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.venue-event-info {
    flex: 1;
}

.venue-event-title {
    font-family: "museo", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.3;
}

#entry-content a.venue-event-item:hover .venue-event-title {
    color: #E08C02;
}

.venue-event-date {
    font-size: 14px;
    color: #888;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    /* Cards overflow parent padding (25px - 5px = 20px negative margin) */
    .event-list {
        margin-left: -20px;
        margin-right: -20px;
    }
    
    .event-card {
        margin-left: 5px;
        margin-right: 5px;
    }
    
    /* Detail box also closer to edges */
    .event-single .event-detail-box {
        margin-left: -20px;
        margin-right: -20px;
    }
    
    .date-title {
        margin: 0px 20px 30px;
    }
    
    .event-cover {
        max-height: 300px;
        margin-bottom: 30px;
    }
    
    .event-date {
        font-size: 28px;
    }
    
    .event-title {
        font-size: 26px;
    }
    
    .event-card {
        padding: 20px;
    }
    
    .guide-intro {
        font-size: 18px;
        margin-bottom: 40px;
    }
    
    .date-group {
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 700px) {
    .event-single #entry-content a,
    .event-guide-single #entry-content a {
        font-size: 16px;
        line-height: 28px;
    }
    
    .venue-address,
    .venue-address-cover {
        flex-direction: column;
        line-height: 1.4;
        font-size: 14px;
    }
    
    /* Mekan (venue) detay sayfası - mobil */
    .venue-single #cover-content {
        margin-bottom: 15%;
    }
}

@media (max-width: 480px) {
    .event-header {
        padding: 0 15px;
    }
    
    .event-content {
        padding: 0 15px;
    }
    
    .event-date {
        font-size: 24px;
    }
    
    .event-card {
        padding: 15px;
        border-radius: 8px;
    }
    
    .event-card-excerpt {
        font-size: 15px;
    }
    
    .event-link-button {
        width: 100%;
        justify-content: center;
    }
    
    /* Hide domain link and separator on mobile */
    #entry-content a.event-external-link,
    .event-card-links .separator {
        display: none;
    }
    
    #entry-content a.related-venue-item,
    #entry-content a.venue-event-item {
        gap: 15px;
        padding: 12px;
    }
    
    .related-venue-image,
    .venue-event-image {
        width: 80px;
        height: 80px;
    }
    
    .related-venue-event-title,
    .venue-event-title {
        font-size: 16px;
    }
    
    /* Venue page mobile */
    .venue-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .venue-map iframe {
        height: 300px;
    }
    
    .venue-title {
        font-size: 28px;
    }
}
