/* ============================================================================
   INFORMATIKA.CZ - Consolidated Stylesheet
   Based on WEF design templates with Informatika.cz branding
   ============================================================================ */

/* ============================================================================
   CSS VARIABLES
   ============================================================================ */
:root {
    --info-blue: #0062a3;
    --info-dark-blue: #1a252f;
    --info-light-gray: #f7f7f7;
    --info-footer-gray: #e1e8ed;
    --info-text-dark: #212529;
    --info-text-light: #6c757d;
    --info-border-color: #dee2e6;
}

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 16px;
    line-height: 1.5;
    color: var(--info-text-dark);
    background-color: #fff;
}

.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

a {
    color: var(--info-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* ============================================================================
   SECTION TITLES & CATEGORY TAGS
   ============================================================================ */
.section-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--info-border-color);
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title a {
    font-size: 14px;
    font-weight: 600;
    color: var(--info-text-dark);
}

.category-tag {
    color: var(--info-blue);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.article-meta {
    font-size: 13px;
    color: var(--info-text-light);
}

.article-summary {
    font-size: 14px;
    color: var(--info-text-light);
    line-height: 1.5;
    margin: 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-sm .article-summary {
    font-size: 13px;
    -webkit-line-clamp: 2;
}

.hero-main-article .article-summary {
    font-size: 16px;
    color: #ccc;
    -webkit-line-clamp: 2;
    margin-bottom: 0.5rem;
}

/* ============================================================================
   HEADER
   ============================================================================ */
.main-header {
    border-bottom: 1px solid var(--info-border-color);
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.logo-text {
    font-weight: 300;
    font-size: 14px;
    line-height: 1.2;
    color: #000;
}

.logo-text strong {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--info-text-dark);
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    text-decoration: none;
    border-bottom: 2px solid var(--info-blue);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-controls a, .header-controls button {
    color: var(--info-text-dark);
    font-weight: 600;
    font-size: 14px;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-signin {
    border: 1px solid var(--info-text-dark);
    padding: 8px 16px;
    border-radius: 4px;
}

.btn-signin:hover {
    background-color: var(--info-text-dark);
    color: #fff;
    text-decoration: none;
}

/* ============================================================================
   BREADCRUMB
   ============================================================================ */
.breadcrumb {
    font-size: 14px;
    color: var(--info-text-light);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--info-border-color);
}

.breadcrumb a {
    color: var(--info-text-light);
}

.breadcrumb a:hover {
    color: var(--info-blue);
}

/* ============================================================================
   HERO SECTION (HOMEPAGE)
   ============================================================================ */
.hero-section {
    padding: 2rem 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.hero-main-article {
    position: relative;
    color: #fff;
}

.hero-main-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-main-article-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    width: 100%;
    box-sizing: border-box;
}

.hero-main-article-content .category-tag {
    color: #fff;
}

.hero-main-article-content h2 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-main-article-content .article-meta {
    color: #ccc;
}

.hero-side-articles {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-side-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ============================================================================
   ARTICLE CARDS (HOMEPAGE)
   ============================================================================ */
.article-card-sm {
    display: flex;
    flex-direction: column;
}

.article-card-sm img {
    margin-bottom: 1rem;
}

.article-card-sm h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.article-card-md {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}

.article-card-md h3 {
    font-size: 20px;
    line-height: 1.3;
}

.business-article-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}

.business-article-card h3 {
    font-size: 20px;
    line-height: 1.3;
}

.business-article-card .article-meta {
    color: #adb5bd;
}

/* ============================================================================
   CALLOUT SECTION
   ============================================================================ */
.callout-section {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--info-border-color);
    border-bottom: 1px solid var(--info-border-color);
    margin-bottom: 2rem;
}

.callout-section h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 0;
}

.callout-section h2 a {
    font-weight: 700;
}

/* ============================================================================
   IN THE NEWS
   ============================================================================ */
.in-the-news {
    margin-bottom: 2rem;
}

.in-the-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 2rem;
}

.news-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.news-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
}

.news-item-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.news-item-content p {
    font-size: 13px;
    color: var(--info-text-light);
    margin: 0;
}

.news-item-content p i {
    font-size: 10px;
    vertical-align: super;
}

.press-release {
    border-top: 1px solid var(--info-border-color);
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.press-release p {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--info-text-light);
    margin: 0 0 0.5rem;
}

.press-release h4 {
    font-size: 18px;
    font-weight: 600;
}

.all-press-link {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid var(--info-border-color);
}

.all-press-link a {
    font-weight: 600;
    color: var(--info-text-dark);
}

/* ============================================================================
   BUSINESS PERSPECTIVES
   ============================================================================ */
.business-perspectives {
    background-color: var(--info-dark-blue);
    color: #fff;
    padding: 3rem 0;
}

.business-perspectives .section-title {
    color: #fff;
    border-bottom-color: #495057;
}

.business-perspectives .section-title a {
    color: #fff;
}

.business-perspectives-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

.business-articles {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.business-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.business-links li {
    padding: 1rem 0;
    border-bottom: 1px solid #495057;
}

.business-links li:first-child {
    padding-top: 0;
}

.business-links li:last-child {
    border-bottom: none;
}

.business-links a {
    color: #fff;
    font-weight: 600;
}

/* ============================================================================
   POPULAR VIDEO
   ============================================================================ */
.popular-video {
    background-color: var(--info-light-gray);
    padding: 3rem 0;
}

.video-main {
    position: relative;
    margin-bottom: 1.5rem;
}

.video-main img {
    display: block;
    width: 100%;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--info-blue);
    font-size: 32px;
    cursor: pointer;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}

.video-main-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 1rem;
}

.video-main-info-text h3 {
    font-size: 22px;
    margin-bottom: 0.25rem;
}

.video-share {
    display: flex;
    gap: 8px;
    align-items: center;
}

.video-share span {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--info-text-light);
    font-weight: 600;
}

.video-share a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.share-fb { background-color: #3b5998; }
.share-tw { background-color: #1da1f2; }
.share-li { background-color: #0077b5; }
.share-link { background-color: #6c757d; }

.video-playlist {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--info-border-color);
}

.video-playlist-item {
    position: relative;
}

.video-playlist-item .video-play-button {
    width: 50px;
    height: 50px;
    font-size: 20px;
}

.video-playlist-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

/* ============================================================================
   CONTENT GRIDS (HOMEPAGE)
   ============================================================================ */
.content-grid-section {
    padding: 3rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.content-grid-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.content-grid-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-grid-sidebar li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--info-border-color);
}

.content-grid-sidebar li:first-child {
    padding-top: 0;
}

.content-grid-sidebar h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.agenda-tabs {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--info-border-color);
}

.agenda-tabs button {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    margin-bottom: -1px;
    cursor: pointer;
}

.agenda-tabs button.active {
    border-bottom: 3px solid var(--info-blue);
    color: var(--info-blue);
}

.sidebar-subheading {
    font-size: 14px;
    font-weight: 700;
    color: var(--info-text-light);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* ============================================================================
   SUBSCRIBE SECTION
   ============================================================================ */
.subscribe-section {
    background-color: var(--info-light-gray);
    padding: 3rem 0;
    text-align: center;
}

.subscribe-section h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.subscribe-section p {
    color: var(--info-text-light);
    margin-bottom: 1.5rem;
}

.subscribe-form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.subscribe-form input[type="email"] {
    padding: 12px;
    border: 1px solid var(--info-border-color);
    width: 300px;
    font-size: 16px;
}

.subscribe-form button {
    background-color: var(--info-blue);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.main-footer {
    background-color: var(--info-footer-gray);
    padding: 3rem 0;
    font-size: 14px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #c8d1d8;
}

.footer-top h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 18px;
}

.social-fb { background-color: #3b5998; }
.social-tw { background-color: #1da1f2; }
.social-li { background-color: #0077b5; }
.social-fl { background-color: #f00; }
.social-tk { background-color: #000; }
.social-in { background-color: #e4405f; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.footer-grid h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-grid li {
    margin-bottom: 0.75rem;
}

.footer-grid a {
    color: var(--info-text-dark);
}

.footer-bottom {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #c8d1d8;
}

.footer-bottom a {
    color: var(--info-text-dark);
    font-weight: 600;
    margin-right: 1rem;
}

/* ============================================================================
   ARTICLE PAGE STYLES
   ============================================================================ */

/* Article Page Header */
.article-page-header {
    font-family: 'Roboto', sans-serif;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Article Figure */
.article-figure {
    margin: 0 0 30px 0;
}

.article-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.article-figure figcaption {
    font-size: 14px;
    color: var(--info-text-light);
    margin-top: 10px;
    line-height: 1.4;
}

/* Article Meta Section */
.article-meta-section {
    margin: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--info-border-color);
    padding-bottom: 20px;
}

.article-meta-section .author-info {
    flex: 1;
}

.article-meta-section .date {
    font-size: 14px;
    color: var(--info-text-light);
}

.article-meta-section .author-name {
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
}

.article-meta-section .author-title {
    font-size: 14px;
    color: var(--info-text-light);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-buttons a {
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.share-buttons a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Article Content */
.article-content {
    margin-top: 40px;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.article-content h2 {
    font-size: 24px;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--info-text-dark);
}

.article-content h3 {
    font-size: 20px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--info-text-dark);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    width: 100%;
    margin: 20px 0;
}

.article-content a {
    color: var(--info-blue);
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content blockquote {
    border-left: 3px solid var(--info-border-color);
    padding-left: 20px;
    margin: 30px 0;
    font-size: 22px;
    font-style: italic;
    color: var(--info-text-light);
}

/* Article Sidebar */
.article-sidebar {
    position: sticky;
    top: 20px;
    padding-top: 100px;
}

.sidebar-section {
    margin-bottom: 40px;
}

.sidebar-section h3 {
    font-size: 18px;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
    margin-bottom: 20px;
}

.sidebar-section h4 {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 5px;
}

.sidebar-section p {
    font-size: 14px;
    color: var(--info-text-light);
    margin-top: 5px;
}

.sidebar-section a {
    color: #000;
    font-weight: bold;
    display: block;
    margin-top: 15px;
}

.sidebar-section img {
    width: 100%;
    margin-top: 20px;
}

/* Sidebar Bullets */
.sidebar-bullets {
    list-style: none;
    font-size: 16px;
    line-height: 1.6;
    padding-left: 20px;
    margin: 0;
}

.sidebar-bullets li {
    margin-bottom: 15px;
    position: relative;
}

.sidebar-bullets li::before {
    content: "•";
    position: absolute;
    left: -20px;
    color: var(--info-blue);
    font-size: 20px;
}

/* More on Topic Section */
.more-on-topic {
    background-color: var(--info-dark-blue);
    color: white;
    padding: 50px 20px;
}

.more-on-topic h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
}

.more-on-topic a {
    color: white;
    text-decoration: none;
}

.more-on-topic a:hover {
    text-decoration: underline;
}

/* Related Articles Grid */
.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.related-articles-grid .large-article {
    grid-column: span 2;
}

.related-articles-grid img {
    width: 100%;
    display: block;
}

.related-articles-grid h3 {
    font-size: 22px;
    margin-top: 15px;
    line-height: 1.3;
    font-weight: bold;
}

.related-articles-grid .small-article h3 {
    font-size: 18px;
}

.related-articles-grid p {
    margin-top: 10px;
    font-size: 14px;
    color: #ccc;
}

/* ============================================================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ============================================================================ */
@media (max-width: 1024px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-side-top {
        grid-template-columns: 1fr;
    }

    .business-perspectives-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-page-header {
        font-size: 36px;
    }

    .article-content {
        font-size: 16px;
    }

    .article-sidebar {
        padding-top: 40px;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
    }

    .related-articles-grid .large-article {
        grid-column: span 1;
    }
}

/* ============================================================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ============================================================================ */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-bottom: 5px;
    }

    .main-nav::-webkit-scrollbar {
        height: 4px;
    }

    .main-nav::-webkit-scrollbar-thumb {
        background-color: var(--info-blue);
        border-radius: 2px;
    }

    .header-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .hero-main-article-content h2 {
        font-size: 24px;
    }

    .hero-section,
    .hero-side-top {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .in-the-news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .business-perspectives-grid,
    .content-grid,
    .article-card-md,
    .business-article-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .video-playlist {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .callout-section h2 {
        font-size: 18px;
    }

    .subscribe-form {
        flex-direction: column;
        align-items: stretch;
    }

    .subscribe-form input[type="email"] {
        width: 100%;
    }

    /* Article page mobile */
    .article-page-header {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .article-content {
        font-size: 16px;
        margin-top: 20px;
    }

    .article-content h2 {
        font-size: 20px;
        margin-top: 30px;
    }

    .article-content h3 {
        font-size: 18px;
        margin-top: 20px;
    }

    .article-meta-section {
        flex-direction: column;
        gap: 20px;
    }

    .article-sidebar {
        padding-top: 20px;
        position: static;
    }

    .sidebar-bullets {
        font-size: 14px;
        padding-left: 15px;
    }

    .more-on-topic h2 {
        font-size: 22px;
    }

    .related-articles-grid h3 {
        font-size: 18px;
    }

    .related-articles-grid .small-article h3 {
        font-size: 16px;
    }
}

/* ============================================================================
   UTILITIES
   ============================================================================ */
.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
