/* Content Pages Styles - History, Tips, Collections, etc. */

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/assets/images/topkapi-header-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb-separator {
    color: rgba(255,255,255,0.6);
}

/* Content Layout */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.content-body {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.content-sidebar {
    position: sticky;
    top: 2rem;
}

/* Typography */
.content-body h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    margin-top: 2rem;
    border-bottom: 3px solid #d4af37;
    padding-bottom: 0.5rem;
}

.content-body h3 {
    font-size: 1.5rem;
    color: #34495e;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.content-body h4 {
    font-size: 1.25rem;
    color: #34495e;
    margin-bottom: 0.75rem;
    margin-top: 1rem;
}

.content-body p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #444;
}

.content-body ul,
.content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-body li {
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: #444;
}

.content-body blockquote {
    border-left: 4px solid #d4af37;
    padding: 1rem 2rem;
    margin: 2rem 0;
    background: #f8f9fa;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* Images and Media */
.content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Info Boxes */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.info-box.warning {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.info-box.success {
    background: #e8f5e8;
    border-left-color: #4caf50;
}

.info-box.error {
    background: #ffebee;
    border-left-color: #f44336;
}

.info-box h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box-icon {
    font-size: 1.25rem;
}

/* Timeline Layout (for history pages) */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #d4af37;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 45%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 55%;
    text-align: left;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    border-left-color: white;
    transform: translateY(-50%);
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    border-right-color: white;
    transform: translateY(-50%);
}

.timeline-date {
    position: absolute;
    top: 50%;
    background: #d4af37;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -85px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -85px;
}

/* Sidebar Components */
.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 0.5rem;
}

/* Timeline Widget - Override main timeline styles for sidebar widget */
.timeline-widget {
    background: none;
    padding: 0;
}

.timeline-widget .timeline-item {
    position: static;
    width: 100%;
    margin-bottom: 1rem;
    left: auto;
    text-align: left;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #d4af37;
    transition: all 0.3s ease;
}

.timeline-widget .timeline-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.timeline-widget .timeline-item strong {
    color: #d4af37;
    font-weight: 700;
    margin-right: 0.5rem;
    font-size: 1.1em;
}

.quick-facts {
    list-style: none;
    padding: 0;
}

.quick-facts li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.quick-facts li:last-child {
    border-bottom: none;
}

.fact-label {
    font-weight: 600;
    color: #34495e;
}

.fact-value {
    color: #d4af37;
    font-weight: 500;
}

/* Table of Contents */
.table-of-contents {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.table-of-contents h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: #667eea;
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.3s;
}

.table-of-contents a:hover {
    color: #4c63d2;
    text-decoration: underline;
}

/* Related Content */
.related-content {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.related-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.related-card:hover {
    transform: translateY(-3px);
}

.related-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-content-area {
    padding: 1rem;
}

.related-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.related-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Quick Facts Section */
.quick-facts-section {
    padding: 2rem 0;
    background: #e8f4fd;
}

/* Guided Tour CTA Box */
.guided-tour-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.guided-tour-cta h4 {
    color: white;
    margin-bottom: 1rem;
}

.guided-tour-cta p {
    margin-bottom: 1rem;
}

.guided-tour-btn {
    background: white;
    color: #667eea;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

/* Weather Widget */
.weather-widget {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.weather-load-btn {
    margin-top: 0.5rem;
}

.weather-display {
    text-align: center;
}

.weather-title {
    margin: 0;
}

.weather-temp {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.weather-condition {
    margin: 0;
}

.weather-note {
    color: #666;
}

/* Tour Widget Styles */
.tour-widget-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tour-widget-container {
    margin: 1rem 0;
}

.tour-widget-button {
    margin-top: 1rem;
}

/* Currency Converter */
.currency-converter {
    font-size: 0.9rem;
}

.currency-option {
    display: block;
    margin: 0.5rem 0;
}

/* Tips Page Specific Styles */
.quick-tips-section {
    padding: 2rem 0;
    background: #e8f4fd;
}

.quick-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.quick-tip-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.quick-tip-card:hover {
    transform: translateY(-3px);
}

.tip-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tips-main-content {
    padding: 3rem 0;
}

/* Budget Cards */
.budget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.budget-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.budget-card h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.budget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.budget-list li {
    padding: 0.25rem 0;
    color: #555;
}

.budget-list strong {
    color: #d4af37;
}

/* Language Phrases */
.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.phrase-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #d4af37;
}

.phrase-card strong {
    color: #2c3e50;
}

/* Palace Experiences Page Specific Styles */
.header-content-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.signin-area {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.95) 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    text-align: center;
    min-width: 320px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.signin-area h3 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.signin-area p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.signin-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.signin-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 1rem 1.5rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.signin-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white !important;
}

.signin-btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.signin-btn-primary:hover:before {
    left: 100%;
}

.signin-btn-secondary {
    background: transparent;
    color: #667eea !important;
    padding: 1rem 1.5rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    border: 2px solid #667eea;
    transition: all 0.3s ease;
    position: relative;
}

.signin-btn-secondary:hover {
    background: #667eea;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.signin-divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: #999;
    font-size: 0.9rem;
}

.signin-divider:before,
.signin-divider:after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e1e8ed;
    margin: 0 1rem;
}

.signin-benefits {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e8ed;
}

.signin-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.signin-benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.signin-benefits li:before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Alternative signin area for better mobile experience */
.signin-area-mobile {
    display: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin-top: 2rem;
}

.signin-area-mobile h3 {
    color: white;
    margin-bottom: 1rem;
}

.signin-area-mobile p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

.signin-area-mobile .signin-buttons {
    flex-direction: row;
    gap: 1rem;
}

.signin-area-mobile .signin-btn-primary {
    background: white;
    color: #667eea !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.signin-area-mobile .signin-btn-secondary {
    background: transparent;
    color: white !important;
    border-color: white;
}

/* Palace Experiences - Responsive Design */
@media (max-width: 1024px) {
    .header-content-flex {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .signin-area {
        min-width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .signin-area {
        display: none;
    }
    
    .signin-area-mobile {
        display: block !important;
    }
    
    .header-content-flex h1 {
        font-size: 2rem;
    }
    
    .signin-area-mobile .signin-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .signin-area-mobile {
        margin: 1rem -1rem 2rem;
        border-radius: 0;
    }
    
    .signin-area-mobile h3 {
        font-size: 1.2rem;
    }
    
    .signin-area-mobile p {
        font-size: 0.95rem;
    }
}

.experiences-intro {
    padding: 4rem 0;
}

.experiences-intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.experiences-intro h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.experiences-intro-text {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.features-grid-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.features-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.experience-feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.experience-feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.experience-feature-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-list {
    text-align: left;
    color: #666;
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 0.5rem;
}

/* Community Stats Section */
.community-stats-section {
    padding: 4rem 0;
    background: #2c3e50;
    color: white;
}

.community-header {
    text-align: center;
    margin-bottom: 3rem;
}

.community-header h2 {
    color: white;
    margin-bottom: 1rem;
}

.community-description {
    color: white;
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    color: white;
}

.stat-number {
    color: white;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: white;
    opacity: 0.8;
    font-size: 1.1rem;
}

/* How It Works Section */
.how-it-works-section {
    padding: 4rem 0;
}

.how-it-works-header {
    text-align: center;
    margin-bottom: 3rem;
}

.how-it-works-header h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.how-it-works-description {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.step-item {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.step-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Collections Page Specific Styles */
.collections-tips-list {
    list-style: none;
    padding: 0;
    font-size: 0.9rem;
}

.collections-tips-list li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* FAQ Section */
.faq-section {
    background: #f8f9fa;
    padding: 3rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
}

/* Mobile Responsiveness for Content Pages */
@media (max-width: 1024px) {
    .content-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 3rem 0;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .content-container {
        padding: 0 1rem;
    }
    
    .content-body {
        padding: 1.5rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 60px;
    }
    
    .timeline-content::after {
        display: none;
    }
    
    .timeline-date {
        left: -50px !important;
        right: auto !important;
        writing-mode: vertical-rl;
        text-orientation: mixed;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .content-body {
        padding: 1rem;
    }
    
    .content-body h2 {
        font-size: 1.75rem;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-date {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}