/* style_objednavky.css - Moje objednávky */

:root {
    --bg: #1a1a1a;
    --bg-elevated: #2a2a2a;
    --bg-soft: #3a3a3a;
    --accent: #b8a600;
    --accent-soft: rgba(184,166,0,0.15);
    --accent-strong: #cc9828;
    --text: #f5f5f5;
    --text-soft: #a8a8a8;
    --danger: #dc3545;
    --success: #28a745;
    --border-subtle: rgba(255,255,255,0.12);
    --radius: 10px;
    --shadow-soft: 0 8px 25px rgba(0,0,0,0.4);
    --shadow-card: 0 4px 16px rgba(0,0,0,0.3);
    --transition: all 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: var(--text);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - stejný jako index */
.header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(26,26,26,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(184,166,0,0.3);
}

.logo-text {
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    font-size: 1.15rem;
}

.logo-text span {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(42,42,42,0.8);
    border: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    position: relative;
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent-strong);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 14px;
    border-radius: 25px;
    background: rgba(42,42,42,0.9);
    border: 1px solid var(--border-subtle);
}

.nav-ghost {
    opacity: 0.85;
}

/* Main */
.main {
    min-height: calc(100vh - 116px);
    padding: 2rem 0 3rem;
}

/* Orders Hero */
.orders-hero {
    background: linear-gradient(135deg, rgba(184,166,0,0.08) 0%, transparent 60%),
                linear-gradient(135deg, var(--bg-elevated) 0%, #2a2a2a 100%);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    padding: 3rem 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.orders-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.orders-subtitle {
    color: var(--text-soft);
    font-size: 1.1rem;
}

/* Search Section */
.orders-search {
    margin-bottom: 3rem;
}

.search-card {
    background: rgba(42,42,42,0.95);
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    padding: 2.5rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-card h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.search-desc {
    color: var(--text-soft);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: rgba(58,58,58,0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.modal {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-soft);
}

.modal h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-text {
    color: var(--text-soft);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.verification-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.verification-form input {
    padding: 1rem;
    background: rgba(58,58,58,0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text);
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 0.3em;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    transition: var(--transition);
}

.verification-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.modal-footer {
    text-align: center;
}

.modal-link {
    color: var(--accent-strong);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.modal-link:hover {
    color: var(--accent);
}

/* Orders Results */
.orders-results {
    margin-bottom: 2rem;
}

.results-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.results-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.results-email {
    color: var(--text-soft);
    font-size: 1rem;
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-bottom: 2.5rem;
}

.order-card {
    background: rgba(42,42,42,0.95);
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition);
}

.order-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 35px rgba(0,0,0,0.5);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    gap: 1rem;
}

.order-card-title h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.order-card-date {
    font-size: 0.9rem;
    color: var(--text-soft);
}

.order-card-status {
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.status-nová {
    background: rgba(0,123,255,0.15);
    color: #4dabf7;
}

.status-zpracováváno {
    background: rgba(255,193,7,0.15);
    color: #f39c12;
}

.status-připraveno {
    background: rgba(40,167,69,0.15);
    color: var(--success);
}

.status-expedováno {
    background: rgba(108,117,125,0.15);
    color: #adb5bd;
}

.status-dokončeno {
    background: rgba(40,167,69,0.2);
    color: #28a745;
}

.status-zrušeno {
    background: rgba(220,53,69,0.15);
    color: var(--danger);
}

.order-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-info-section h4 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--accent-strong);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    gap: 1rem;
}

.info-label {
    color: var(--text-soft);
    font-weight: 500;
    min-width: 120px;
}

.info-value {
    color: var(--text);
    text-align: right;
    flex: 1;
}

.info-value.code {
    font-family: 'Courier New', monospace;
    background: rgba(58,58,58,0.8);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-item-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(58,58,58,0.5);
    border-radius: 8px;
    align-items: center;
}

.item-name {
    color: var(--text);
}

.item-qty {
    color: var(--text-soft);
    text-align: right;
}

.item-price {
    color: var(--text-soft);
    text-align: right;
}

.item-total {
    color: var(--accent-strong);
    font-weight: 600;
    text-align: right;
}

.order-notes {
    color: var(--text-soft);
    padding: 1rem;
    background: rgba(58,58,58,0.5);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    line-height: 1.6;
}

.order-pricing {
    background: rgba(58,58,58,0.5);
    border-radius: 8px;
    padding: 1rem;
    border-left: 3px solid var(--accent);
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--text-soft);
}

.pricing-row strong {
    color: var(--text);
}

.pricing-total {
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.8rem;
    margin-top: 0.8rem;
    font-size: 1.1rem;
    color: var(--text);
}

.pricing-total strong {
    color: var(--accent-strong);
    font-size: 1.2rem;
}

.payment-info-box {
    background: var(--accent-soft);
    border-radius: 8px;
    padding: 1.2rem;
    border: 1px solid rgba(184,166,0,0.3);
}

.payment-info-box h4 {
    color: var(--accent-strong);
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.9rem 2rem;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    font-family: inherit;
}

.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    color: #111;
    box-shadow: 0 4px 16px rgba(184,166,0,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184,166,0,0.4);
}

.btn-ghost {
    background: rgba(42,42,42,0.9);
    color: var(--text);
    border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
    background: rgba(42,42,42,1);
    border-color: var(--accent);
}

/* Results Actions */
.results-actions {
    text-align: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(42,42,42,0.9);
    border-radius: 14px;
    border: 1px dashed var(--border-subtle);
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-soft);
    margin-bottom: 1.5rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.alert-error {
    background: rgba(220,53,69,0.15);
    color: var(--danger);
    border: 1px solid rgba(220,53,69,0.3);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-subtle);
    background: rgba(26,26,26,0.8);
    padding: 2rem 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text-soft);
}

.footer-note {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 960px) {
    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-item-row {
        grid-template-columns: 1fr auto;
        gap: 0.5rem;
    }

    .item-qty, .item-price {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 0.8rem 0 1rem;
        gap: 0.8rem;
    }

    .nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main {
        padding-top: 1.6rem;
    }

    .orders-hero {
        padding: 2rem 1.5rem;
    }

    .search-card {
        padding: 1.8rem 1.5rem;
    }

    .modal {
        padding: 1.5rem;
    }

    .order-card-header {
        padding: 1.2rem;
    }

    .order-card-body {
        padding: 1.2rem;
        gap: 1rem;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-value {
        text-align: left;
    }

    .pricing-row {
        padding: 0.4rem 0;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .orders-hero {
        padding: 2rem 1.2rem;
    }

    .search-card {
        padding: 1.5rem 1.2rem;
    }

    .modal {
        padding: 1.2rem;
    }

    .order-card {
        border-radius: 10px;
    }

    .order-card-header {
        padding: 1rem;
        gap: 0.5rem;
    }

    .order-card-body {
        padding: 1rem;
    }

    .order-card-title h3 {
        font-size: 1rem;
    }

    .results-header h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 0.9rem 1.8rem;
    }
}
