@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

.widget-wrapper {
    padding: 10px 20px; 
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.widget-wrapper > div {
    padding: 10px;
}

.widget-wrapper .parites ul {
    margin: 0;
}

.widget-wrapper .parites ul li {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
    list-style-type: none;
}

.widget-wrapper .bilgi {
    margin-bottom: 10px;
}

.widget-wrapper .settings input {
    width: 70%;
    vertical-align: bottom;
}

.widget-wrapper .control-group {
    width: 47%;
    float: left;
    margin: 0 5px;
}

table.doviz-table td.degisim-yukari i {
    color: green;
}

table.doviz-table td.degisim-asagi i {
    color: #f00;
}

.doviz-table-widget td {
    color: #ebebeb;
    font-size: 13px;
    padding: 5px !important;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.version-btn {
    padding: 8px 15px;
    margin-right: 10px;
    background: #1A2634;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.version-btn.active {
    background: #3498DB;
}

.preview-content {
    display: none;
}

.preview-content.active {
    display: block;
}

.ticker-wrapper {
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    padding: 8px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 100% !important;
    margin: 0 auto;
}

.market-title {
    display: block;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    padding: 10px 0;
    background: linear-gradient(to right, #6D2D6A, #5F2D6C);
    border-radius: 8px 8px 0 0;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.market-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: none;
}

.market-title:hover {
    background: linear-gradient(to right, #6D2D6A, #4A235A);
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.market-title:hover::after {
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.ticker {
    display: flex;
    white-space: nowrap;
}

.ticker:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin: 0 20px;
    font-size: 14px;
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 6px;
    transition: transform 0.2s ease;
    min-width: 240px;
    justify-content: space-between;
    background: #2f3e46;
}

.ticker-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    width: 100%;
}

.ticker-item a:hover {
    transform: translateY(-2px);
}

.ticker-icon, .gold-icon, .crypto-icon {
    width: 28px;
    height: 28px;
    margin-right: 8px;
    vertical-align: middle;
}

.ticker-name {
    font-weight: 700;
    margin-right: 8px;
    font-size: 14px;
    flex: 1;
    color: #FFFFFF;
}

.ticker-value {
    font-weight: 500;
    margin-right: 8px;
    font-size: 14px;
}

.ticker-change {
    font-weight: 500;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.ticker-change:hover {
    opacity: 1;
}

.ticker-change.positive {
    background: rgba(0, 192, 135, 0.15);
    color: #00C087;
}

.ticker-change.negative {
    background: rgba(255, 51, 58, 0.15);
    color: #FF333A;
}

.ticker-change.neutral {
    background: rgba(153, 153, 153, 0.15);
    color: #999999;
}

.ticker-change i {
    font-size: 10px;
    margin-right: 4px;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.exchanges {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to right, #6D2D6A, #5F2D6C);
    border-radius: 8px !important;
    padding-top: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 100% !important;
    margin: 0 auto;
}

.exchange-boxes {
    background: linear-gradient(to right, #6D2D6A, #5F2D6C);
    padding: 8px;
    border-radius: 0 0 8px 8px;
}

.currency-block {
    position: relative;
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 8px;
    margin: 8px 0;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 80px;
}

.currency-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.currency-block .ticker-icon, .currency-block .gold-icon, .currency-block .crypto-icon {
    width: 28px;
    height: 28px;
    margin-right: 12px;
}

.currency-block .currency-info {
    flex: 1;
}

.currency-block .currency-name {
    font-size: 16px;
    font-weight: 700;
    color: #2f3e46;
    margin-bottom: 4px;
    display: block;
}

.currency-block .currency-values {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    min-width: 0;
}

.currency-block p {
    margin: 0 !important;
    font-size: 13px !important;
    color: #2f3e46 !important;
    line-height: 1.4 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.currency-block p.bid {
    margin-right: 10px !important;
    flex: 0 1 50%;
    min-width: 0;
}

.currency-block p:not(.bid) {
    flex: 0 1 50%;
    text-align: right;
    min-width: 0;
}

.currency-block p span {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #CC3300 !important;
}

.currency-block .change-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.currency-block .change-badge:hover {
    opacity: 1;
}

.currency-block .change-badge.positive {
    background: rgba(0, 192, 135, 0.15);
    color: #00C087;
}

.currency-block .change-badge.negative {
    background: rgba(255, 51, 58, 0.15);
    color: #FF333A;
}

.currency-block .change-badge.neutral {
    background: rgba(153, 153, 153, 0.15);
    color: #999999;
}

.currency-block .change-badge i {
    font-size: 10px;
    margin-right: 4px;
}

.faq-section {
    margin-top: 40px;
    padding: 30px;
    background: #1A2634;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.faq-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #FFFFFF;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 15px;
    background: #2C3E50;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.faq-question:hover {
    background: #3498DB;
}

.faq-answer {
    display: none;
    padding: 15px;
    background: #2C3E50;
    border-radius: 8px;
    margin-top: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.faq-answer p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #FFFFFF;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .widget-wrapper {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    
    .widget-wrapper .settings input {
        width: calc(70% - 10px);
    }
    
    .widget-wrapper .control-group {
        width: 100%;
        float: none;
        margin: 0 0 15px 0;
    }
    
    #code {
        width: 100% !important;
    }
    
    .colorSelector {
        margin-left: 5px;
    }
    
    .span6 {
        width: 100%;
        margin-left: 0;
        margin-bottom: 15px;
    }
    
    #currencies {
        max-height: 300px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .exchanges, .ticker-wrapper {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .market-title {
        font-size: 16px;
        padding: 8px 0;
    }
    
    .market-title::after {
        height: 1px;
    }
    
    .widget-content {
        overflow: visible !important;
    }
    
    .ticker-item {
        min-width: 200px;
        padding: 6px 12px;
        margin: 0 15px;
    }
    
    .ticker-icon, .gold-icon, .crypto-icon {
        width: 24px;
        height: 24px;
    }
    
    .ticker-name, .ticker-value {
        font-size: 13px;
    }
    
    .ticker-change {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .ticker-change i {
        font-size: 8px;
        margin-right: 3px;
    }
    
    .currency-block {
        padding: 10px 12px;
        margin: 6px 0;
    }
    
    .currency-block .ticker-icon, .currency-block .gold-icon, .currency-block .crypto-icon {
        width: 24px;
        height: 24px;
    }
    
    .currency-block .currency-name {
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .currency-block .currency-values {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .currency-block p {
        margin: 0 !important;
        font-size: 12px !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .currency-block p span {
        font-size: 13px !important;
    }
    
    .currency-block p.bid {
        margin-right: 10px !important;
        flex: 0 1 45%;
        min-width: 0;
    }
    
    .currency-block p:not(.bid) {
        flex: 0 1 45%;
        text-align: right;
        min-width: 0;
    }
    
    .currency-block .change-badge {
        top: 6px;
        right: 8px;
        padding: 3px 6px;
        font-size: 10px;
        min-width: 50px;
        display: flex;
        justify-content: center;
    }
    
    .currency-block .change-badge i {
        font-size: 8px;
        margin-right: 3px;
    }
    
    .faq-section {
        padding: 20px;
    }
    
    .faq-section h2 {
        font-size: 20px;
    }
}