* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-50: #f0f9ff;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --accent-500: #ec4899;
    --accent-600: #db2777;
    --accent-700: #be185d;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #fef2f2 0%, #f0f9ff 50%, #fef2f2 100%);
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(90deg, var(--accent-500) 0%, var(--accent-600) 100%);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sparkle-icon {
    font-size: 1rem;
}

.btn-download {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-download:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Search results page */
.search-inline-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-input-inline {
    max-width: 260px;
    background: white;
    padding-inline: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
}

.search-results {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-top: 1rem;
}

.search-results-info {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.search-results-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.search-result-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent-600);
    text-decoration: none;
}

.search-result-title:hover {
    text-decoration: underline;
}

.search-result-url {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.15rem;
}

.search-result-snippet {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-top: 0.35rem;
}

.search-results-empty {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* Skrytí všech Google CSE widgetů a popup oken */
.gcse-searchresults-only,
.gsc-control-cse,
.gsc-results,
.gsc-modal-background,
.gsc-modal-background-image,
.gsc-overlay,
.gsc-results-wrapper-overlay {
    display: none !important;
    visibility: hidden !important;
}

/* Zajistíme, že žádné popup okno se nezobrazí */
body > iframe[src*="google.com"],
body > div[class*="gsc-modal"],
body > div[id*="gsc-modal"] {
    display: none !important;
}

/* Main Container */
.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header */
.header {
    margin-bottom: 2rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3);
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent-500) 0%, var(--accent-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: var(--accent-600);
    background: var(--gray-100);
}

/* Search Section */
.search-section {
    margin-bottom: 1.5rem;
    position: relative;
}

.search-bar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    padding: 0 1rem;
}

.search-bar-wrapper:focus-within {
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.2);
    transform: scale(1.01);
    outline: 4px solid rgba(236, 72, 153, 0.2);
}

.search-icon-left {
    color: var(--gray-400);
    margin-right: 0.75rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 0;
    font-size: 1.125rem;
    background: transparent;
    color: var(--gray-900);
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.search-action-btn {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-action-btn:hover {
    background: var(--gray-100);
    color: var(--accent-600);
}

.btn-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: linear-gradient(90deg, var(--accent-500) 0%, var(--accent-600) 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

/* Quick Suggestions */
.quick-suggestions {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--gray-100);
    padding: 1rem;
    z-index: 50;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none;
}

.suggestions-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.sparkle-icon-small {
    font-size: 1rem;
}

.suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-tag {
    padding: 0.375rem 0.75rem;
    background: var(--gray-100);
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--gray-700);
}

.suggestion-tag:hover {
    background: #fce7f3;
    color: var(--accent-600);
}

/* Trending Section */
.trending-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.trending-section::-webkit-scrollbar {
    display: none;
}

.trending-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    white-space: nowrap;
}

.trending-label svg {
    color: var(--accent-500);
}

.trending-tags {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.trending-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.trending-tag:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--accent-600);
    transform: translateY(-2px);
}

.trending-arrow {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 9999px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trending-arrow:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .content-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* News Column */
.news-section {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.news-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.news-label {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--gray-900);
}

.news-date {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.news-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s;
    position: relative;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: var(--gray-50);
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-radius: 0.5rem;
}

.news-item-live {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 0 -1.5rem;
}

.live-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.commentary-badge {
    display: inline-block;
    background: #fce7f3;
    color: var(--accent-700);
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.news-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .news-content {
        grid-template-columns: 1fr;
    }
}

.news-image-wrapper {
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-item:hover .news-image {
    transform: scale(1.05);
}

.news-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
}

.news-link {
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.2s;
}

.news-link:hover {
    color: var(--accent-600);
}

.news-description {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: auto;
}

.news-category {
    font-weight: 500;
    color: var(--accent-600);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.sidebar-subtitle {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.email-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(90deg, var(--accent-500) 0%, var(--accent-600) 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.link-secondary {
    color: var(--accent-600);
    text-decoration: none;
    font-size: 0.875rem;
    text-align: center;
    transition: color 0.2s;
}

.link-secondary:hover {
    color: var(--accent-700);
    text-decoration: underline;
}

/* Ad Section */
.ad-section {
    padding: 0;
    overflow: hidden;
}

.ad-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--gray-100);
    transition: color 0.2s;
}

.ad-link:hover {
    color: var(--accent-600);
}

.ad-banner {
    background: linear-gradient(135deg, #fbbf24 0%, #4b5563 100%);
    padding: 1.5rem;
    color: white;
    position: relative;
}

.ad-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ad-text {
    flex: 1;
}

.ad-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ad-subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ad-info {
    font-size: 0.75rem;
    opacity: 0.9;
}

.ad-image {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder {
    font-size: 3rem;
}

.ad-button {
    width: 100%;
    padding: 0.75rem;
    background: var(--gray-800);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.ad-button:hover {
    background: var(--gray-900);
    transform: translateY(-2px);
}

.ad-disclaimer {
    font-size: 0.625rem;
    opacity: 0.7;
    text-align: center;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--gray-700);
    transition: all 0.2s;
    background: var(--gray-50);
}

.service-item:hover {
    background: var(--gray-100);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.service-name {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    color: var(--gray-700);
}

.service-item:hover .service-name {
    color: var(--accent-600);
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .search-bar-wrapper {
        flex-wrap: wrap;
    }

    .search-actions {
        width: 100%;
        margin-top: 0.5rem;
        margin-left: 0;
        padding-left: 3rem;
    }

    .btn-search {
        flex: 1;
        justify-content: center;
    }
}
